summaryrefslogtreecommitdiff
path: root/gtk/gtkgesture.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkgesture.c')
-rw-r--r--gtk/gtkgesture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 5a0aa3af64..f78fc040f0 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -740,10 +740,10 @@ gtk_gesture_handle_event (GtkEventController *controller,
}
else if (event_type == GDK_GRAB_BROKEN)
{
- GdkSurface *window = NULL;
+ GdkSurface *surface = NULL;
- gdk_event_get_grab_window (event, &window);
- if (!window || !gesture_within_window (gesture, window))
+ gdk_event_get_grab_surface (event, &surface);
+ if (!surface || !gesture_within_window (gesture, surface))
_gtk_gesture_cancel_all (gesture);
return FALSE;