From: Po Lu Date: Fri, 10 Jun 2022 00:58:51 +0000 (+0800) Subject: Fix DND tooltip handling with tooltip-reuse-hidden-frame X-Git-Tag: emacs-29.0.90~1910^2~119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e2f94ded0193f8d4eece158e865e21e35aa7aff;p=emacs.git 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. --- 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;