Skip to content

Commit

Permalink
dbus: Add org.freedesktop.ScreenSaver.SimulateUserActivity support.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 2, 2019
1 parent 027887d commit 9465809
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/linux/SDL_dbus.c
Expand Up @@ -310,7 +310,9 @@ SDL_DBus_QueryProperty(const char *node, const char *path, const char *interface
void
SDL_DBus_ScreensaverTickle(void)
{
/* 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. */
SDL_DBus_CallVoidMethod("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
SDL_DBus_CallVoidMethod("org.freedesktop.ScreenSaver", "/org/freedesktop/ScreenSaver", "org.freedesktop.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
}

SDL_bool
Expand Down

0 comments on commit 9465809

Please sign in to comment.