popover: Send key events only to the focus widget

gtk_window_propagate_key_event() will run unstopped from the focus widget up to the
popover if GDK_EVENT_PROPAGATE was returned along the chain, resulting in infinite
recursion. This could be just triggered by pressing some modifier key on an entry...
This commit is contained in:
Carlos Garnacho 2014-11-26 15:30:52 +01:00
parent 05893dd5a9
commit 50076ed95b

View File

@ -1218,7 +1218,7 @@ gtk_popover_key_press (GtkWidget *widget,
focus = gtk_window_get_focus (GTK_WINDOW (toplevel));
if (focus && gtk_widget_is_ancestor (focus, widget))
return gtk_window_propagate_key_event (GTK_WINDOW (toplevel), event);
return gtk_widget_event (focus, (GdkEvent*) event);
}
return GDK_EVENT_PROPAGATE;