]> git.eshelyaron.com Git - emacs.git/commitdiff
Only handle SelectionRequest events from the DND display during DND
authorPo Lu <luangruo@yahoo.com>
Thu, 12 May 2022 01:07:59 +0000 (09:07 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 12 May 2022 01:11:52 +0000 (09:11 +0800)
* src/xterm.c (handle_one_xevent): Handle only SelectionRequest
events from the DND frame's display via hold_quit.

src/xterm.c

index a250fce9b092bed78121af316d9ea89d53c2982f..1c2b727c0f8a1c4061b2b5bc49392baf7746db9c 100644 (file)
@@ -14794,7 +14794,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
           events immediately, by setting hold_quit to the input
           event.  */
 
-       if (x_dnd_in_progress || x_dnd_waiting_for_finish)
+       if ((x_dnd_in_progress
+            && dpyinfo == FRAME_DISPLAY_INFO (x_dnd_frame))
+           || (x_dnd_waiting_for_finish
+               && dpyinfo->display == x_dnd_finish_display))
          {
            eassume (hold_quit);