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 2ccf29f6b3
commit b5de12debd

View File

@ -9301,7 +9301,9 @@ proxy_pointer_event (GdkDisplay *display,
return TRUE; return TRUE;
} }
if (pointer_info->window_under_pointer != pointer_window) if ((source_event->type != GDK_TOUCH_UPDATE ||
_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, /* Either a toplevel crossing notify that ended up inside a child window,
or a motion notify that got into another child window */ or a motion notify that got into another child window */