From 0e2f94ded0193f8d4eece158e865e21e35aa7aff Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 10 Jun 2022 08:58:51 +0800 Subject: [PATCH] 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. --- src/xterm.c | 1 + 1 file changed, 1 insertion(+) 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) tip_f = XFRAME (tip_frame); if (!FRAME_LIVE_P (tip_f) + || !FRAME_VISIBLE_P (tip_f) || (FRAME_X_DISPLAY (tip_f) != FRAME_X_DISPLAY (x_dnd_frame))) return; -- 2.39.2