From 1f154f66383ce5b333bca26029707c5c2477374c Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Wed, 9 Feb 2011 14:00:47 +0900 Subject: [PATCH] Fix press/release confusion when synthesizing clutter key events We were generating presses for releases and vice-versa. https://bugzilla.gnome.org/show_bug.cgi?id=641896 --- src/gnome-shell-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c index 8d85fa237..f9692ff26 100644 --- a/src/gnome-shell-plugin.c +++ b/src/gnome-shell-plugin.c @@ -368,7 +368,7 @@ gnome_shell_gdk_event_handler (GdkEvent *event_gdk, ClutterInputDevice *keyboard = clutter_device_manager_get_core_device (device_manager, CLUTTER_KEYBOARD_DEVICE); - ClutterEvent *event_clutter = clutter_event_new ((event_gdk->type == GDK_KEY_RELEASE) ? + ClutterEvent *event_clutter = clutter_event_new ((event_gdk->type == GDK_KEY_PRESS) ? CLUTTER_KEY_PRESS : CLUTTER_KEY_RELEASE); event_clutter->key.time = event_gdk->key.time; event_clutter->key.flags = CLUTTER_EVENT_NONE;