menu: Ignore leaves due to grabs

When we open a submenu we get a leave due to the grab,
but we don't want to unset the active item then.
This commit is contained in:
Matthias Clasen
2020-04-25 11:46:43 -04:00
parent 95424d3f44
commit 8b64e29ba6

View File

@@ -193,7 +193,8 @@ leave_cb (GtkEventController *controller,
target = gtk_event_controller_get_widget (controller);
gtk_popover_menu_set_active_item (GTK_POPOVER_MENU (target), NULL);
if (mode == GDK_CROSSING_NORMAL)
gtk_popover_menu_set_active_item (GTK_POPOVER_MENU (target), NULL);
}
static void