From 4884a7c1af3a6699b70a639248689519fb76201f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 3 May 2012 18:15:48 +0200 Subject: [PATCH] gdk: do not send leave event on touchpad button release This is along the changes introduced in bd55519f7e6bb5da2fdf6f5e99bd79213059f81b, A TOUCHPAD device behaves like a mouse" https://bugzilla.gnome.org/show_bug.cgi?id=674549 --- gdk/gdkdisplay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index f12cd97dc4..60bbb44c8f 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -970,8 +970,7 @@ switch_to_pointer_grab (GdkDisplay *display, * synthesized when needed. */ if (source_device && - (gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN || - gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHPAD)) + (gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN)) info->need_touch_press_enter = TRUE; pointer_window = NULL;