bsnes/hiro
Tim Allen 67d8586720 hiro: Fix screensaver suspension under GNOME on X11.
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.
2020-11-12 20:56:40 +11:00
..
cocoa hiro/cocoa: Implement Application::setScreenSaver 2020-11-09 20:25:35 +11:00
core v114.5 2020-02-23 20:23:25 +09:00
extension Fix region auto-detection when using native file dialogs. 2020-10-27 23:20:56 +11:00
gtk hiro: Fix screensaver suspension under GNOME on X11. 2020-11-12 20:56:40 +11:00
platform Update to v094r13 release. 2015-03-07 21:21:47 +11:00
qt hiro: Fix screensaver suspension under GNOME on X11. 2020-11-12 20:56:40 +11:00
resource v107.8 2019-07-17 21:11:46 +09:00
windows Windows compilation fix. 2020-02-23 21:03:24 +09:00
GNUmakefile Use pkg-config instead of hardcoded path to Qt5 moc 2020-09-18 22:31:17 +10:00
components.hpp v109.4 2019-09-17 03:37:03 +09:00
hiro.cpp v107.8 2019-07-17 21:11:46 +09:00
hiro.hpp v107.8 2019-07-17 21:11:46 +09:00