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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user