[gtk+/multitouch: 30/40] gdk, csw: Don't change window_under_pointer for pure touch events



commit 8c6d74c0042d24b55c490b221aae2b5e049df1d4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Dec 28 02:09:59 2011 +0100

    gdk,csw: Don't change window_under_pointer for pure touch events
    
    Only touch events that emulate the pointer do change it.

 gdk/gdkwindow.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 19ed714..42594fe 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9516,7 +9516,9 @@ proxy_pointer_event (GdkDisplay                 *display,
       return TRUE;
     }
 
-  if (pointer_info->window_under_pointer != pointer_window)
+  if ((source_event->type != GDK_TOUCH_MOTION ||
+       _gdk_event_get_pointer_emulated (source_event)) &&
+      pointer_info->window_under_pointer != pointer_window)
     {
       /* Either a toplevel crossing notify that ended up inside a child window,
 	 or a motion notify that got into another child window  */



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