gdk: Don't change window_under_pointer for pure touch events

Only touch events that emulate the pointer do change it.
This commit is contained in:
Carlos Garnacho
2011-12-28 02:09:59 +01:00
committed by Matthias Clasen
parent b835349fa5
commit 89e53a0c61

View File

@@ -9286,7 +9286,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 */