[gtk+/multitouch-for-3.4: 66/89] gdk, csw: Don't change window_under_pointer for pure touch events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch-for-3.4: 66/89] gdk, csw: Don't change window_under_pointer for pure touch events
- Date: Thu, 23 Feb 2012 12:31:28 +0000 (UTC)
commit 789e5895ffcbb600af6786cf8cedbea07e8ffed8
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 2e30376..2d9c2bf 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9289,7 +9289,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]