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:
@ -1218,7 +1218,7 @@ gtk_popover_key_press (GtkWidget *widget,
|
|||||||
focus = gtk_window_get_focus (GTK_WINDOW (toplevel));
|
focus = gtk_window_get_focus (GTK_WINDOW (toplevel));
|
||||||
|
|
||||||
if (focus && gtk_widget_is_ancestor (focus, widget))
|
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;
|
return GDK_EVENT_PROPAGATE;
|
||||||
|
|||||||
Reference in New Issue
Block a user