menushell: Listen to non-primary button clicks

Menus should also be deactivated on right-button clicks.
This commit is contained in:
Timm Bäder 2018-12-07 17:03:45 +01:00
parent 3ce45508e1
commit 43ef4d7b53

View File

@ -436,6 +436,7 @@ gtk_menu_shell_init (GtkMenuShell *menu_shell)
gtk_widget_set_has_surface (widget, FALSE);
controller = GTK_EVENT_CONTROLLER (gtk_gesture_multi_press_new ());
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (controller), 0);
g_signal_connect (controller, "pressed",
G_CALLBACK (multi_press_pressed), menu_shell);
g_signal_connect (controller, "released",