]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle monitor attribute updates during drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 10:20:59 +0000 (18:20 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 10:21:16 +0000 (18:21 +0800)
* src/xterm.c (x_monitors_changed_cb):
(handle_one_xevent): Set x_dnd_monitors during monitor changes.

src/xterm.c

index 557555e7a4dcdbbad19c9dcef5ba0a62bcdcf1c8..f0cd5e9c8b83c6a4f63315a47d774fd3317ba52e 100644 (file)
@@ -15626,6 +15626,9 @@ x_monitors_changed_cb (GdkScreen *gscr, gpointer user_data)
     }
 
   dpyinfo->last_monitor_attributes_list = current_monitors;
+
+  if (x_dnd_in_progress && x_dnd_update_tooltip)
+    x_dnd_monitors = current_monitors;
 }
 #endif
 
@@ -21409,6 +21412,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
            inev.ie.kind = NO_EVENT;
 
          dpyinfo->last_monitor_attributes_list = current_monitors;
+
+         if (x_dnd_in_progress && x_dnd_update_tooltip)
+           x_dnd_monitors = current_monitors;
        }
 #endif
     OTHER: