From 512dec54d332824b4b16a234caa35c7834f5f7f1 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 9ed967e886..39a3295c61 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);