Merge branch 'wip/carlosg/windowhandle-gesture-state' into 'master'

gtkwindowhandle: Only claim gesture on action

See merge request GNOME/gtk!2237
This commit is contained in:
Matthias Clasen 2020-07-13 14:32:06 +00:00
commit fbf99b8d65

View File

@ -351,10 +351,11 @@ click_gesture_pressed_cb (GtkGestureClick *gesture,
{
case GDK_BUTTON_PRIMARY:
if (n_press == 2)
perform_titlebar_action (self, event, button, n_press);
gtk_gesture_set_sequence_state (GTK_GESTURE (gesture),
sequence, GTK_EVENT_SEQUENCE_CLAIMED);
{
perform_titlebar_action (self, event, button, n_press);
gtk_gesture_set_sequence_state (GTK_GESTURE (gesture),
sequence, GTK_EVENT_SEQUENCE_CLAIMED);
}
break;
case GDK_BUTTON_SECONDARY: