]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix quitting DND while waiting for finish
authorPo Lu <luangruo@yahoo.com>
Fri, 25 Mar 2022 08:21:17 +0000 (16:21 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 25 Mar 2022 08:22:45 +0000 (16:22 +0800)
* src/xterm.c (x_dnd_begin_drag_and_drop): Always clear finish
flag before quitting.

src/xterm.c

index cd651f4667f7160a97c5f9a678a890a37538adb4..968ea78c1a16856d0598ed169858d0c5aab48f16 100644 (file)
@@ -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 ();