[gtk+/gtk-3-18] GtkWindow: Reset gestures after triggering right click titlebar action



commit 8662985ebb2a04be7db6a4d23575fb467ba4e018
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Nov 25 17:28:15 2015 +0100

    GtkWindow: Reset gestures after triggering right click titlebar action
    
    Just like it happens for window dragging, we're likely to not see the
    matching button release for this event, so we must reset the controller
    manually here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758661

 gtk/gtkwindow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2d9f4b5..85d9b8e 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1421,6 +1421,9 @@ multipress_gesture_pressed_cb (GtkGestureMultiPress *gesture,
       if (gtk_window_titlebar_action (window, event, button, n_press))
         gtk_gesture_set_sequence_state (GTK_GESTURE (gesture),
                                         sequence, GTK_EVENT_SEQUENCE_CLAIMED);
+
+      gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture));
+      gtk_event_controller_reset (GTK_EVENT_CONTROLLER (priv->drag_gesture));
       return;
     }
   else if (button == GDK_BUTTON_MIDDLE && region == GTK_WINDOW_REGION_TITLE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]