From ae94417f80c92b26792280a9b798cafc01e49232 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 18 Feb 2023 23:02:22 +0100 Subject: [PATCH] gdk/x11: Also grab keyboard during XDnD grabs The drag source must handle events and messaging, this also includes keyboard handling for accessibility and cancellation. Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5604 --- gdk/x11/gdkdrag-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c index 7a58f690ae..49e23787d9 100644 --- a/gdk/x11/gdkdrag-x11.c +++ b/gdk/x11/gdkdrag-x11.c @@ -1912,7 +1912,7 @@ drag_grab (GdkDrag *drag) root = GDK_DISPLAY_XROOTWIN (display); seat = gdk_device_get_seat (gdk_drag_get_device (drag)); - capabilities = GDK_SEAT_CAPABILITY_ALL_POINTING; + capabilities = GDK_SEAT_CAPABILITY_ALL_POINTING | GDK_SEAT_CAPABILITY_KEYBOARD; cursor = gdk_drag_get_cursor (drag, x11_drag->current_action); g_set_object (&x11_drag->cursor, cursor); -- 2.30.2