[gtk/wip/carlosg/x11-dnd: 5/5] gdkdrag/x11: Issue XdndLeave on cancellation
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/x11-dnd: 5/5] gdkdrag/x11: Issue XdndLeave on cancellation
- Date: Thu, 16 Jan 2020 14:05:38 +0000 (UTC)
commit 357e215fb8dddec9775e4112cec099e959d0badc
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jan 16 15:03:24 2020 +0100
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]