dbus: Add org.freedesktop.ScreenSaver.SimulateUserActivity support.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 02 Jul 2019 09:38:31 -0400
changeset 129203505a39d5aa6
parent 12919 d3a97780aa05
child 12921 5959fcbe6dfe
dbus: Add org.freedesktop.ScreenSaver.SimulateUserActivity support.
src/core/linux/SDL_dbus.c
     1.1 --- a/src/core/linux/SDL_dbus.c	Mon Jul 01 14:52:56 2019 -0300
     1.2 +++ b/src/core/linux/SDL_dbus.c	Tue Jul 02 09:38:31 2019 -0400
     1.3 @@ -310,7 +310,9 @@
     1.4  void
     1.5  SDL_DBus_ScreensaverTickle(void)
     1.6  {
     1.7 +    /* org.gnome.ScreenSaver is the legacy interface, but it'll either do nothing or just be a second harmless tickle on newer systems, so we leave it for now. */
     1.8      SDL_DBus_CallVoidMethod("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
     1.9 +    SDL_DBus_CallVoidMethod("org.freedesktop.ScreenSaver", "/org/freedesktop/ScreenSaver", "org.freedesktop.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
    1.10  }
    1.11  
    1.12  SDL_bool