From e33af5895f53a54b0c2b8993a9b7ba4858cbf3ae Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 12 May 2020 10:24:36 +0200 Subject: [PATCH] gdk/wayland: Drop explicit ungrab after surface move/resize We now break grabs properly if receiving a .leave event with active buttons. This is not necessary anymore. --- gdk/wayland/gdksurface-wayland.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index 2bbc4ef40f..451d0bb703 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -3695,11 +3695,6 @@ gdk_wayland_surface_begin_resize_drag (GdkSurface *surface, if (sequence) gdk_wayland_device_unset_touch_grab (device, sequence); - - /* This is needed since Wayland will absorb all the pointer events after the - * above function - FIXME: Is this always safe..? - */ - gdk_seat_ungrab (gdk_device_get_seat (device)); } static void @@ -3745,11 +3740,6 @@ gdk_wayland_surface_begin_move_drag (GdkSurface *surface, if (sequence) gdk_wayland_device_unset_touch_grab (device, sequence); - - /* This is needed since Wayland will absorb all the pointer events after the - * above function - FIXME: Is this always safe..? - */ - gdk_seat_ungrab (gdk_device_get_seat (device)); } static void