Commit 2d7b9273 authored by Matthias Clasen's avatar Matthias Clasen

window: Be more careful when propagating key events

We are keeping references on the widget we are handling as we
are iterating up, but that doesn't protect us against the entire
tree being axed from inside gtk_widget_handle_event.
https://bugzilla.gnome.org/show_bug.cgi?id=727644
parent a5bd1474
......@@ -7613,7 +7613,11 @@ gtk_window_propagate_key_event (GtkWindow *window,
GtkWidget *parent;
if (gtk_widget_is_sensitive (focus))
handled = gtk_widget_event (focus, (GdkEvent*) event);
{
handled = gtk_widget_event (focus, (GdkEvent*) event);
if (handled)
break;
}
parent = gtk_widget_get_parent (focus);
if (parent)
......
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