mirror of https://github.com/bsnes-emu/bsnes.git
67d8586720
On X11, hiro uses the xdg-screensaver helper tool to disable the screensaver, which detects the screensaver that is running and uses the appropriate mechanism to communicate with it. The tool's API expects an X11 window ID, but at least some screensavers ignore it, so it can be set up however. The GNOME backend *does* care about the window ID, but its expectations are not documented anywhere, so byuu spent a frustrating few days trying things at random to get it working, and failing. It turns out, GNOME does *not* require the window to be mapped, but it *does* require the window to have a name. Using XStoreName() to name the window fixes screensaver suspension for me under GNOME 3.38. Note: while XStoreName is technically deprecated, it's not going to go away while X11 is still around, and the reason it's deprecated is because it doesn't include character encoding data. We don't care — no user should ever see the window name, and it's plain ASCII so it should be fine. Fixes #102. |
||
---|---|---|
.. | ||
cocoa | ||
core | ||
extension | ||
gtk | ||
platform | ||
qt | ||
resource | ||
windows | ||
GNUmakefile | ||
components.hpp | ||
hiro.cpp | ||
hiro.hpp |