[gtk+/multitouch: 99/129] 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: 99/129] gdk, csw: Don't change window_under_pointer for pure touch events
- Date: Sat, 18 Feb 2012 17:14:39 +0000 (UTC)
commit 9e3330c90be5c7f42dfb1ab556c19a76c1d1310a
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 219a9a9..a66d5e9 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9517,7 +9517,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]