From c739ce9d73b373df15a3544960ead009d7025969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 1 Jul 2020 23:56:36 +0200 Subject: [PATCH] x11/dnd: Don't rely on frame events for offscreen windows The XDND implementation uses an offscreen GdkSurface as IPC when handling drag'n'drop. This might result in stuck DND, as the IPC window migth become frozen if the compositing manager doesn't fake those if the window was never drawn. Avoid this issue by disabling the frame events handling on the IPC window. --- gdk/x11/gdkdnd-x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index e07fa103256..a4243d44b28 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -2822,6 +2822,7 @@ gdk_x11_drag_context_manage_dnd (GdkDragContext *context, context->protocol = GDK_DRAG_PROTO_XDND; x11_context->ipc_window = g_object_ref (ipc_window); + gdk_x11_window_set_frame_sync_enabled (ipc_window, FALSE); if (drag_context_grab (context)) { -- GitLab