[gtk+/touch-for-3.4: 49/65] gdk: Only trigger motion hints machinery on motion events



commit 30b3de7778f59b44a0c1bb2d996c3518d362af8a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jan 5 01:00:19 2012 +0100

    gdk: Only trigger motion hints machinery on motion events
    
    Touch events have no need for it, plus the concept behind
    gdk_event_request_motions() doesn't wrap around multiple
    touches within a device.

 gdk/gdkwindow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index cec2370..3b7bb1f 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9383,6 +9383,7 @@ proxy_pointer_event (GdkDisplay                 *display,
       is_hint = FALSE;
 
       if (event_win &&
+          source_event->type == GDK_MOTION_NOTIFY &&
 	  (evmask & GDK_POINTER_MOTION_HINT_MASK))
 	{
           gulong *device_serial;



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