src/core/linux/SDL_dbus.c
changeset 12920 3505a39d5aa6
parent 12503 806492103856
child 12921 5959fcbe6dfe
equal deleted inserted replaced
12919:d3a97780aa05 12920:3505a39d5aa6
   308 
   308 
   309 
   309 
   310 void
   310 void
   311 SDL_DBus_ScreensaverTickle(void)
   311 SDL_DBus_ScreensaverTickle(void)
   312 {
   312 {
       
   313     /* 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. */
   313     SDL_DBus_CallVoidMethod("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
   314     SDL_DBus_CallVoidMethod("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
       
   315     SDL_DBus_CallVoidMethod("org.freedesktop.ScreenSaver", "/org/freedesktop/ScreenSaver", "org.freedesktop.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
   314 }
   316 }
   315 
   317 
   316 SDL_bool
   318 SDL_bool
   317 SDL_DBus_ScreensaverInhibit(SDL_bool inhibit)
   319 SDL_DBus_ScreensaverInhibit(SDL_bool inhibit)
   318 {
   320 {