popover bar: Don't grab focus away from open menus

It makes them unhappy and disappear.
This commit is contained in:
Matthias Clasen 2019-06-09 14:03:40 +00:00
parent 8452b9a13d
commit 143ea34ca1

View File

@ -123,7 +123,7 @@ set_active_item (GtkPopoverBar *bar,
{
if (popup || (was_popup && changed))
gtk_popover_popup (bar->active_item->popover);
else
else if (changed)
gtk_widget_grab_focus (GTK_WIDGET (bar->active_item));
}
}