[gtk+] gdk: Only trigger motion hints machinery on motion events



commit 0a80c26cdf4a21f6299888e28ff8bad6c733f4f6
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 06bb958..48800ef 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9395,6 +9395,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]