From 8ecde51972b92a538e8dbf4b4408f9e63783204d Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 25 Mar 2022 16:21:17 +0800 Subject: [PATCH] Fix quitting DND while waiting for finish * src/xterm.c (x_dnd_begin_drag_and_drop): Always clear finish flag before quitting. --- src/xterm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index cd651f4667f..968ea78c1a1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7503,9 +7503,10 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction, x_dnd_in_progress = false; x_dnd_frame = NULL; x_set_dnd_targets (NULL, 0); - x_dnd_waiting_for_finish = false; } + x_dnd_waiting_for_finish = false; + if (x_dnd_use_toplevels) x_dnd_free_toplevels (); -- 2.39.2