From 574c5d1de420b8257b6174b2023219d372f41919 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 12 Jun 2022 10:13:04 +0800 Subject: [PATCH] * src/nsfns.m (ns_move_tooltip_to_mouse_location): Handle invisible frames. --- src/nsfns.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nsfns.m b/src/nsfns.m index add4883e1fd..5ab2b2ee35a 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -3816,7 +3816,8 @@ ns_move_tooltip_to_mouse_location (NSPoint screen_point) if (ns_tooltip) size = [ns_tooltip frame].size; else if (!FRAMEP (tip_frame) - || !FRAME_LIVE_P (XFRAME (tip_frame))) + || !FRAME_LIVE_P (XFRAME (tip_frame)) + || !FRAME_VISIBLE_P (XFRAME (tip_frame))) return; else { -- 2.39.2