From 68eb30a9f05541c3807f5c4f9dd06c8a3bc895a7 Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Thu, 25 Apr 2013 11:31:12 -0500 Subject: Fix for issue #4 --- src/gs-monitor.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gs-monitor.c b/src/gs-monitor.c index 67cf4bb..56ef901 100644 --- a/src/gs-monitor.c +++ b/src/gs-monitor.c @@ -25,9 +25,11 @@ #include #include #include +#include #include #include +#include #include "mate-screensaver.h" @@ -189,7 +191,11 @@ static void gs_monitor_lock_screen(GSMonitor* monitor) static void gs_monitor_simulate_user_activity(GSMonitor* monitor) { - /* FIXME: reset the xsync timer? */ + Display *display = gdk_x11_display_get_xdisplay (gdk_display_get_default ()); + XScreenSaverSuspend (display, TRUE); + XSync (display, FALSE); + XScreenSaverSuspend (display, FALSE); + XSync (display, FALSE); /* request that the manager unlock - will pop up a dialog if necessary */ -- cgit v1.2.1