[gnome-settings-daemon] power: Use CurrentTime instead of zero



commit f5d03593568bc1bb762f95c6437982c2d5a437b8
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 31 20:38:19 2013 +0100

    power: Use CurrentTime instead of zero
    
    To match the XTestFakeKeyEvent() docs.

 plugins/power/gpm-common.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index f76d576..596b1ef 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -1673,8 +1673,8 @@ reset_idletime (void)
 
         gdk_error_trap_push ();
         /* send a left or right alt key; first press, then release */
-        XTestFakeKeyEvent (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), first_keycode ? keycode1 : keycode2, True, 0);
-        XTestFakeKeyEvent (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), first_keycode ? keycode1 : keycode2, False, 0);
+        XTestFakeKeyEvent (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), first_keycode ? keycode1 : keycode2, True, CurrentTime);
+        XTestFakeKeyEvent (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), first_keycode ? keycode1 : keycode2, False, CurrentTime);
         first_keycode = !first_keycode;
         gdk_error_trap_pop_ignored ();
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]