From 1196380f2857381df95dfdd900a8caa4bf48c8ac Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 17 Mar 2019 18:55:00 -0400 Subject: [PATCH] paned: Don't use a grab It does not seem necessary for proper functioning of the drag handle. --- gtk/gtkpaned.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index c09b3d9142..cc20a759ba 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -35,7 +35,6 @@ #include "gtkgesturesingle.h" #include "gtkgizmoprivate.h" #include "gtkintl.h" -#include "gtkmain.h" #include "gtkmarshalers.h" #include "gtkorientableprivate.h" #include "gtkprivate.h" @@ -768,7 +767,6 @@ gesture_drag_begin_cb (GtkGestureDrag *gesture, priv->drag_pos = start_y - handle_area.origin.y; priv->panning = TRUE; - gtk_grab_add (GTK_WIDGET (paned)); gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED); @@ -804,7 +802,6 @@ gesture_drag_end_cb (GtkGestureDrag *gesture, if (!priv->panning) gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_DENIED); - gtk_grab_remove (GTK_WIDGET (paned)); priv->panning = FALSE; }