From 357e215fb8dddec9775e4112cec099e959d0badc Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 16 Jan 2020 15:03:24 +0100 Subject: [PATCH] gdkdrag/x11: Issue XdndLeave on cancellation According to XDND "The XdndLeave message cancels the session.", issue one when cancelling a drag, so the dest side has an opportunity to forget about the GdkDrop. --- gdk/x11/gdkdrag-x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c index 87535b24ef..ed78c284ba 100644 --- a/gdk/x11/gdkdrag-x11.c +++ b/gdk/x11/gdkdrag-x11.c @@ -2141,6 +2141,7 @@ static void gdk_x11_drag_cancel (GdkDrag *drag, GdkDragCancelReason reason) { + gdk_drag_do_leave (GDK_X11_DRAG (drag)); drag_ungrab (drag); gdk_drag_drop_done (drag, FALSE); } -- 2.30.2