bsnes/hiro/gtk
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
..
action v107.8 2019-07-17 21:11:46 +09:00
widget v114.5 2020-02-23 20:23:25 +09:00
application.cpp hiro: Fix screensaver suspension under GNOME on X11. 2020-11-12 20:56:40 +11:00
application.hpp v114.5 2020-02-23 20:23:25 +09:00
browser-window.cpp v114.5 2020-02-23 20:23:25 +09:00
browser-window.hpp v107.8 2019-07-17 21:11:46 +09:00
desktop.cpp v107.8 2019-07-17 21:11:46 +09:00
desktop.hpp v107.8 2019-07-17 21:11:46 +09:00
font.cpp v107.8 2019-07-17 21:11:46 +09:00
font.hpp v107.8 2019-07-17 21:11:46 +09:00
group.cpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
group.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
header.hpp v107.8 2019-07-17 21:11:46 +09:00
keyboard.cpp v107.8 2019-07-17 21:11:46 +09:00
keyboard.hpp v107.8 2019-07-17 21:11:46 +09:00
menu-bar.cpp v107.8 2019-07-17 21:11:46 +09:00
menu-bar.hpp v107.8 2019-07-17 21:11:46 +09:00
message-window.cpp v107.8 2019-07-17 21:11:46 +09:00
message-window.hpp v107.8 2019-07-17 21:11:46 +09:00
monitor.cpp v108.9 2019-08-16 19:44:16 +09:00
monitor.hpp v107.8 2019-07-17 21:11:46 +09:00
mouse.cpp v107.8 2019-07-17 21:11:46 +09:00
mouse.hpp v107.8 2019-07-17 21:11:46 +09:00
object.cpp v107.8 2019-07-17 21:11:46 +09:00
object.hpp v107.8 2019-07-17 21:11:46 +09:00
platform.cpp v107.8 2019-07-17 21:11:46 +09:00
platform.hpp v107.8 2019-07-17 21:11:46 +09:00
popup-menu.cpp v107.8 2019-07-17 21:11:46 +09:00
popup-menu.hpp v107.8 2019-07-17 21:11:46 +09:00
settings.cpp v107.8 2019-07-17 21:11:46 +09:00
settings.hpp v107.8 2019-07-17 21:11:46 +09:00
sizable.cpp v107.8 2019-07-17 21:11:46 +09:00
sizable.hpp v107.8 2019-07-17 21:11:46 +09:00
status-bar.cpp v107.8 2019-07-17 21:11:46 +09:00
status-bar.hpp v107.8 2019-07-17 21:11:46 +09:00
timer.cpp v107.8 2019-07-17 21:11:46 +09:00
timer.hpp v107.8 2019-07-17 21:11:46 +09:00
utility.cpp v107.8 2019-07-17 21:11:46 +09:00
window.cpp v109.4 2019-09-17 03:37:03 +09:00
window.hpp v107.8 2019-07-17 21:11:46 +09:00