forked from AuroraMiddleware/gtk
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:
parent
3c99587b5d
commit
8c632417c4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user