summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-06-12 10:13:04 +0800
committerPo Lu <luangruo@yahoo.com>2022-06-12 10:13:04 +0800
commit574c5d1de420b8257b6174b2023219d372f41919 (patch)
treef3e43f4d923bf4ebb8f7ff80b0e3c332bd9be3d2
parent0adbb21ece4af494e7050281dc022d5f7a11f196 (diff)
downloademacs-574c5d1de420b8257b6174b2023219d372f41919.tar.gz
* src/nsfns.m (ns_move_tooltip_to_mouse_location): Handle invisible frames.
-rw-r--r--src/nsfns.m3
1 files changed, 2 insertions, 1 deletions
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
{