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.
This commit is contained in:
Carlos Garnacho 2020-05-12 10:24:36 +02:00
parent f7d2985f89
commit e33af5895f

View File

@ -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