labwc / labwc

A Wayland window-stacking compositor
https://labwc.github.io
GNU General Public License v2.0
1.7k stars 157 forks source link

Option to make tearing the preferred behavior across the entire desktop #2272

Open liftboost opened 6 days ago

liftboost commented 6 days ago

I would like to switch to labwc from uncomposited X, but my use case for uncomposited X is a tad unconventional; I use tearing for general desktop responsiveness, and when there is an application where tearing prevention would be preferable (such as a video player or scenic video game), the application's implementation of vsync is usually satisfactory enough to not require the use of a compositor, even in windowed mode (such as OpenGL games with vblank_mode set to 1).

I don't know if this "unique" tearing preference would be possible to implement, but at least a config option to make everything tear would be enough for me to switch, since I use tearing across almost my entire system save for a select application or two.

Thank you for being awesome and reading my issue :) I am already very impressed with the current state of this project's tearing controls.

Consolatis commented 6 days ago

From a technical perspective it should be easy to implement some "always" mode for the setting. The window specific tearing hint could then be initialized to true and changed via the ToggleTearing action for the windows that should make tearing stop if focused.