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. |
||
---|---|---|
.. | ||
action | ||
widget | ||
application.cpp | ||
application.hpp | ||
browser-window.cpp | ||
browser-window.hpp | ||
desktop.cpp | ||
desktop.hpp | ||
font.cpp | ||
font.hpp | ||
group.cpp | ||
group.hpp | ||
header.hpp | ||
keyboard.cpp | ||
keyboard.hpp | ||
menu-bar.cpp | ||
menu-bar.hpp | ||
message-window.cpp | ||
message-window.hpp | ||
monitor.cpp | ||
monitor.hpp | ||
mouse.cpp | ||
mouse.hpp | ||
object.cpp | ||
object.hpp | ||
platform.cpp | ||
platform.hpp | ||
popup-menu.cpp | ||
popup-menu.hpp | ||
qt.hpp | ||
settings.cpp | ||
settings.hpp | ||
sizable.cpp | ||
sizable.hpp | ||
status-bar.cpp | ||
status-bar.hpp | ||
timer.cpp | ||
timer.hpp | ||
utility.cpp | ||
window.cpp | ||
window.hpp |