Skip to content

Fix macOS tooltips persisting indefinitely#1301

Closed
Copilot wants to merge 1 commit into
masterfrom
copilot/suggest-fix-for-issue-1299
Closed

Fix macOS tooltips persisting indefinitely#1301
Copilot wants to merge 1 commit into
masterfrom
copilot/suggest-fix-for-issue-1299

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 19, 2026

On macOS, tooltips remain visible after the mouse leaves, cluttering the UI.

fixes #1299

Root Cause

The create_show method binds the tooltip window's <Leave> event to self.hide instead of self.destroy_hide. On macOS, tooltips use lazy creation and must be destroyed (not withdrawn) when dismissed:

# Line 529 in frontend_tkinter_show.py
# Before:
self.tooltip.bind("<Leave>", self.hide)  # withdraw() - window persists

# After:
self.tooltip.bind("<Leave>", self.destroy_hide)  # destroy() - window cleaned up

This aligns with the widget's own <Leave> binding (lines 466/469), which correctly calls destroy_hide.

Changes

  • frontend_tkinter_show.py:529: Change tooltip <Leave> binding from hide to destroy_hide
  • bdd_frontend_tkinter_show.py:791: Update test assertion to match

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Suggest a fix for analysis of issue #1299 Fix macOS tooltips not disappearing Feb 19, 2026
Copilot AI requested a review from amilcarlucas February 19, 2026 09:37
Copilot AI changed the title Fix macOS tooltips not disappearing Fix macOS tooltips persisting indefinitely Feb 19, 2026
@amilcarlucas amilcarlucas marked this pull request as ready for review February 19, 2026 10:05
Copilot AI review requested due to automatic review settings February 19, 2026 10:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS: Tooltips do not disappear

3 participants