From: Carlos Garnacho Date: Thu, 16 Jan 2020 14:03:24 +0000 (+0100) Subject: gdkdrag/x11: Issue XdndLeave on cancellation X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~320^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=357e215fb8dddec9775e4112cec099e959d0badc;p=gtk4.git 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. --- 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); }