Commit d9a433da authored by Carlos Garnacho's avatar Carlos Garnacho

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.
parent 03a30e46
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment