From 4ce65f019ee1b145b95784a2fbda1bbef8f4ac85 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 14 May 2020 10:44:07 +0200 Subject: [PATCH] GtkDragSource: Pass return value of drag-cancel into drag_end() This is needed to work as the docs say (don't play fallback cancel animation if cancel returned TRUE to signal the drop already happened). --- gtk/gtkdragsource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c index 1cb8674aa8..779fbefb81 100644 --- a/gtk/gtkdragsource.c +++ b/gtk/gtkdragsource.c @@ -436,7 +436,7 @@ gtk_drag_source_cancel_cb (GdkDrag *drag, gboolean success = FALSE; g_signal_emit (source, signals[DRAG_CANCEL], 0, source->drag, reason, &success); - drag_end (source, FALSE); + drag_end (source, success); } static void