From e563020eea738febed38194d9b0984473c852f3f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 9 Jun 2022 18:20:59 +0800 Subject: [PATCH] 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 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: -- 2.39.2