emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e563020eea: Handle monitor attribute updates during drag-and-drop


From: Po Lu
Subject: master e563020eea: Handle monitor attribute updates during drag-and-drop
Date: Thu, 9 Jun 2022 06:21:26 -0400 (EDT)

branch: master
commit e563020eea738febed38194d9b0984473c852f3f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Handle monitor attribute updates during drag-and-drop
    
    * src/xterm.c (x_monitors_changed_cb):
    (handle_one_xevent): Set x_dnd_monitors during monitor changes.
---
 src/xterm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index 557555e7a4..f0cd5e9c8b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]