remove always and fullscreen tearing options and add ToggleTearing action

This commit is contained in:
Ph42oN 2024-01-04 11:37:29 +02:00
parent 8b7e953a25
commit acbcf4f497
7 changed files with 26 additions and 54 deletions

View file

@ -154,6 +154,9 @@ Actions are used in menus and keyboard/mouse bindings.
the usual keybinds will function again until switching back to the
original window. There can be multiple windows with this mode set.
*<action name="ToggleTearing" />*
Toggles tearing for the focused window.
*<action name="FocusOutput" output="HDMI-A-1" />*
Give focus to topmost window on given output and warp the cursor
to the center of the window. If the given output does not contain

View file

@ -129,16 +129,12 @@ this is for compatibility with Openbox.
*fullscreen* enables adaptive sync whenever a window is in fullscreen
mode.
*<core><allowTearing>* [yes|no|fullscreen|always]
*<core><allowTearing>* [yes|no]
Allow tearing to reduce input lag. Default is no.
This open requires setting the environment variable WLR_DRM_NO_ATOMIC=1.
This option requires setting the environment variable WLR_DRM_NO_ATOMIC=1.
*yes* allow tearing if the active window requests it.
*fullscreen* allow tearing if the active window requests it or is in
fullscreen mode.
*always* allow tearing regardless of window status.
*yes* allow tearing if the active window requests it,
or its enabled with action ToggleTearing.
*<core><reuseOutputMode>* [yes|no]
Try to re-use the existing output mode (resolution / refresh rate).