[gtk/wip/carlosg/broken-grabs: 168/170] gdk/wayland: Drop explicit ungrab after surface move/resize
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/broken-grabs: 168/170] gdk/wayland: Drop explicit ungrab after surface move/resize
- Date: Tue, 12 May 2020 15:41:33 +0000 (UTC)
commit e33af5895f53a54b0c2b8993a9b7ba4858cbf3ae
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 12 10:24:36 2020 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]