[gtk+/multitouch: 106/121] gdk: Only trigger motion hints machinery on motion events



commit 155fd005d62e8081ded7eed5672a7f7851787afd
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 e10dadc..e4b97fd 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9622,6 +9622,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]