Skip to content

Backport to 1.20: xwayland: Disable the MIT-SCREEN-SAVER extension when rootless

Xwayland is just a Wayland client, no X11 screensaver should be expected to work reliably on Xwayland when running rootless because Xwayland cannot grab the input devices so it has no way to actually lock the screen managed by the Wayland compositor.

Turn off the screensaver on Xwayland when running rootless by setting the screensaver timeout and interval and their default values to zero and disable the MIT-SCREEN-SAVER extension.

Closes: #1051 (closed) Signed-off-by: Olivier Fourdan Reviewed-by: Michel Dänzer Reviewed-by: Peter Hutterer (cherry picked from commit 5c20e4b8)

Merge request reports