From: Po Lu Date: Thu, 9 Jun 2022 10:20:59 +0000 (+0800) Subject: Handle monitor attribute updates during drag-and-drop X-Git-Tag: emacs-29.0.90~1910^2~130 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e563020eea738febed38194d9b0984473c852f3f;p=emacs.git 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. --- diff --git a/src/xterm.c b/src/xterm.c index 557555e7a4d..f0cd5e9c8b8 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: