]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct last change for return-frame drags
authorPo Lu <luangruo@yahoo.com>
Wed, 16 Mar 2022 09:07:17 +0000 (17:07 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 16 Mar 2022 09:07:17 +0000 (17:07 +0800)
* src/xterm.c (handle_one_xevent): Use `x_any_window_to_frame'
to determine `x_dnd_return_frame_object'.

src/xterm.c

index 83651376bfd46f86428dece01623fc5a7c805ef2..7d1a5f4043ffef1af184a87fcb20f86a30463b00 100644 (file)
@@ -11669,11 +11669,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                  x_dnd_return_frame = 2;
 
                if (x_dnd_return_frame == 2
-                   && x_window_to_frame (dpyinfo, target))
+                   && x_any_window_to_frame (dpyinfo, target))
                  {
                    x_dnd_in_progress = false;
                    x_dnd_return_frame_object
-                     = x_window_to_frame (dpyinfo, target);
+                     = x_any_window_to_frame (dpyinfo, target);
                    x_dnd_return_frame = 3;
                  }
 
@@ -12903,11 +12903,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                        x_dnd_return_frame = 2;
 
                      if (x_dnd_return_frame == 2
-                         && x_window_to_frame (dpyinfo, target))
+                         && x_any_window_to_frame (dpyinfo, target))
                        {
                          x_dnd_in_progress = false;
                          x_dnd_return_frame_object
-                           = x_window_to_frame (dpyinfo, target);
+                           = x_any_window_to_frame (dpyinfo, target);
                          x_dnd_return_frame = 3;
                        }