bsnes-libretro/hiro/qt
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 v108.1 2019-07-31 06:57:31 +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 Update to v094r40 release. 2015-08-18 20:18:00 +10:00
desktop.cpp v108.9 2019-08-16 19:44:16 +09:00
desktop.hpp Update to v094r40 release. 2015-08-18 20:18:00 +10:00
font.cpp Update to v104r14 release. 2017-09-24 11:01:48 +10:00
font.hpp Update to v094r44 release. 2015-10-01 20:00:28 +10:00
group.cpp Update to v094r40 release. 2015-08-18 20:18:00 +10:00
group.hpp Update to v094r40 release. 2015-08-18 20:18:00 +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 Update to v094r40 release. 2015-08-18 20:18:00 +10:00
menu-bar.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
menu-bar.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
message-window.cpp v114.5 2020-02-23 20:23:25 +09:00
message-window.hpp Update to v094r40 release. 2015-08-18 20:18:00 +10:00
monitor.cpp v108.9 2019-08-16 19:44:16 +09:00
monitor.hpp Update to v106r47 release. 2018-07-14 13:59:29 +10:00
mouse.cpp v107.8 2019-07-17 21:11:46 +09:00
mouse.hpp Update to v094r40 release. 2015-08-18 20:18:00 +10:00
object.cpp Update to 20180731 release. 2018-07-31 20:56:45 +10:00
object.hpp Update to v106r55 release. 2018-08-05 19:00:15 +10: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 Update to v094r43 release. 2015-08-30 12:08:26 +10:00
qt.hpp v108.1 2019-07-31 06:57:31 +09:00
settings.cpp v107.8 2019-07-17 21:11:46 +09:00
settings.hpp Update to v106r47 release. 2018-07-14 13:59:29 +10:00
sizable.cpp Update to v106r69 release. 2019-01-02 10:52:08 +11:00
sizable.hpp Update to v106r69 release. 2019-01-02 10:52:08 +11:00
status-bar.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
status-bar.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
timer.cpp v107.8 2019-07-17 21:11:46 +09:00
timer.hpp Update to v094r40 release. 2015-08-18 20:18:00 +10:00
utility.cpp v107.8 2019-07-17 21:11:46 +09:00
window.cpp Fix QT pWindow::setModal 2020-04-07 20:32:45 +02:00
window.hpp Update to bsnes v107.1 release. 2019-04-09 11:16:30 +10:00