aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-06-10 08:58:51 +0800
committerPo Lu2022-06-10 08:58:51 +0800
commit0e2f94ded0193f8d4eece158e865e21e35aa7aff (patch)
treef6ddd7052c211aa91cb1bf7f5fcb939885c8fa8e
parent8ef3862fa0d1aa987d67ec42acf3611a42e2a0fb (diff)
downloademacs-0e2f94ded0193f8d4eece158e865e21e35aa7aff.tar.gz
emacs-0e2f94ded0193f8d4eece158e865e21e35aa7aff.zip
Fix DND tooltip handling with tooltip-reuse-hidden-frame
* src/xterm.c (x_dnd_update_tooltip_position): Don't move window if tip_f is not visible.
-rw-r--r--src/xterm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index f0cd5e9c8b8..77dea3ad4d1 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -15239,6 +15239,7 @@ x_dnd_update_tooltip_position (int root_x, int root_y)
15239 tip_f = XFRAME (tip_frame); 15239 tip_f = XFRAME (tip_frame);
15240 15240
15241 if (!FRAME_LIVE_P (tip_f) 15241 if (!FRAME_LIVE_P (tip_f)
15242 || !FRAME_VISIBLE_P (tip_f)
15242 || (FRAME_X_DISPLAY (tip_f) 15243 || (FRAME_X_DISPLAY (tip_f)
15243 != FRAME_X_DISPLAY (x_dnd_frame))) 15244 != FRAME_X_DISPLAY (x_dnd_frame)))
15244 return; 15245 return;