scrolledwindow: don't capture events meant for non-child windows

GtkTextHandle creates temporary override redirect windows, but still
hook to the text widget for events, so those are effectively captured
by GtkScrolledWindow if a text widget is within it
This commit is contained in:
Carlos Garnacho 2012-07-11 16:44:16 +02:00 committed by Matthias Clasen
parent 3c99587b5d
commit 8c632417c4

View File

@ -2895,6 +2895,9 @@ gtk_scrolled_window_captured_event (GtkWidget *widget,
gboolean retval = FALSE;
GtkScrolledWindowPrivate *priv = GTK_SCROLLED_WINDOW (widget)->priv;
if (gdk_window_get_window_type (event->any.window) == GDK_WINDOW_TEMP)
return FALSE;
switch (event->type)
{
case GDK_TOUCH_BEGIN: