]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (x_dnd_begin_drag_and_drop): Fix test against DND frame.
authorPo Lu <luangruo@yahoo.com>
Wed, 23 Mar 2022 03:14:13 +0000 (11:14 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 23 Mar 2022 03:14:28 +0000 (11:14 +0800)
src/xterm.c

index 3d0d8264092bfdf7bc41e0f344a059523b5fd3a9..e4c17644e424cd23ea314e04af8fea5e9b69c549 100644 (file)
@@ -6949,8 +6949,8 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
   int finish;
 #endif
   XWindowAttributes root_window_attrs;
-
   struct input_event hold_quit;
+  struct frame *any;
   char *atom_name;
   Lisp_Object action, ltimestamp;
   specpdl_ref ref;
@@ -7110,8 +7110,9 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
      loop, so when dragging items to itself, always return
      XdndActionPrivate.  */
   if (x_dnd_end_window != None
-      && (x_any_window_to_frame (FRAME_DISPLAY_INFO (f),
-                                x_dnd_end_window) != f))
+      && (any = x_any_window_to_frame (FRAME_DISPLAY_INFO (f),
+                                      x_dnd_end_window))
+      && (any != f))
     return QXdndActionPrivate;
 
   if (x_dnd_action != None)