gtkwindow: Resort to regular event bubbling by all means on non-toplevels

If the multipress gesture is not created (ie. not a toplevel GtkWindow),
also avoid possibly calling gtk_widget_event() on the events gotten here.
This commit is contained in:
Carlos Garnacho 2014-11-04 17:08:49 +01:00
parent 03a30e462e
commit d9a433daf7

View File

@ -7735,6 +7735,7 @@ gtk_window_handle_wm_event (GtkWindow *window,
gboolean
_gtk_window_check_handle_wm_event (GdkEvent *event)
{
GtkWindowPrivate *priv;
GtkWidget *widget;
widget = gtk_get_event_widget (event);
@ -7742,6 +7743,11 @@ _gtk_window_check_handle_wm_event (GdkEvent *event)
if (!GTK_IS_WINDOW (widget))
return GDK_EVENT_PROPAGATE;
priv = GTK_WINDOW (widget)->priv;
if (!priv->multipress_gesture)
return GDK_EVENT_PROPAGATE;
if (event->type != GDK_BUTTON_PRESS && event->type != GDK_BUTTON_RELEASE &&
event->type != GDK_MOTION_NOTIFY && event->type != GDK_TOUCH_BEGIN &&
event->type != GDK_TOUCH_END && event->type != GDK_TOUCH_UPDATE)