Commit Graph

3 Commits

Author SHA1 Message Date
Robin Gareus 72faae2ba9
Update method to disable X11 screensaver
On modern systems `xdg-screensaver reset` does not necessarily
reset the timer. It depends on DPMS, and according to spec turns off
the screensaver (unlock the screen), via `xset dpms force on`.

Explicit window suspend/resume make use of DBus
org.freedesktop.ScreenSaver.Inhibit, which is not be supported
but all systems, so we fall back to good old `XResetScreenSaver`
which does reset the activation timer.
2022-09-04 17:32:16 +02:00
Robin Gareus 4b5d16554b
Simplify screensaver inhibit API and fix OSX compatibility 2019-08-11 20:39:39 +02:00
Robin Gareus 78d7ef15df
Prototype infrastructure to disable screensaver 2019-08-11 02:33:16 +02:00