mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
popover: Do not hide the popover if the focus widget is just unset
The focus widget might be unset, just to be set again on a widget inside the popover. Have the popover wait till the focus is actually moved outside before dismissing.
This commit is contained in:
parent
c665564374
commit
e2cd59b731
@ -341,9 +341,9 @@ window_set_focus (GtkWindow *window,
|
||||
{
|
||||
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
|
||||
|
||||
if (priv->modal &&
|
||||
if (priv->modal && widget &&
|
||||
gtk_widget_is_drawable (GTK_WIDGET (popover)) &&
|
||||
(!widget || !gtk_widget_is_ancestor (widget, GTK_WIDGET (popover))))
|
||||
!gtk_widget_is_ancestor (widget, GTK_WIDGET (popover)))
|
||||
gtk_widget_hide (GTK_WIDGET (popover));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user