[gnome-settings-daemon] power: Fix incomplete fix for bug 692556
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Fix incomplete fix for bug 692556
- Date: Sat, 26 Jan 2013 00:07:49 +0000 (UTC)
commit 11078cfbea800b1a92e0a7ed80044956e70169cd
Author: Bastien Nocera <hadess hadess net>
Date: Sat Jan 26 01:06:52 2013 +0100
power: Fix incomplete fix for bug 692556
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 bf1b4e2..25e8dcc 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -1633,8 +1633,8 @@ reset_idletime (void)
gdk_error_trap_push ();
/* send a left shift key; first press, then release */
- XTestFakeKeyEvent (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), keycode1, True, 0);
- XTestFakeKeyEvent (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), keycode2, False, 0);
+ 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);
first_keycode = !first_keycode;
gdk_error_trap_pop_ignored ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]