Skip to content

fix(mac): hover, tooltips and Esc in the menu bar panel (0.9.1) - #614

Merged
Maxaubert merged 1 commit into
mainfrom
fix/mac-panel-hover-tooltips
Nov 23, 2026
Merged

Maxaubert merged 1 commit into
mainfrom
fix/mac-panel-hover-tooltips

Conversation

@Maxaubert

Copy link
Copy Markdown
Owner

Problem

Owner report: no hover on Settings or Quit in the menu bar panel, and no tooltips saying what the icons are.

Measured (e2e_menubar): when the panel opens, macOS sometimes refuses to activate Wind (active false, key false). WebKit only draws hover and shows title tooltips while its app is active, and keys then go on to the app behind (Esc did nothing).

Fix

  • Hover and tooltips without activation: PanelPointerView tracks the pointer (.activeAlways) and calls window.__windPointer(x, y). The page sets a hov class (CSS rules :global, or Svelte strips them) and draws its own tooltips from data-tip after 500 ms for every icon-only control (toggles, slider icons, engine, Settings, Quit). Native titles removed so nothing doubles.
  • Non-activating panel: key and clickable whether or not activation is allowed. Activation is still requested (keyboard navigation) and handed back on close.
  • Esc is taken by Wind's event tap while the panel is open.
  • Docs: mac/docs/architecture.md menu bar panel section. Mac 0.9.1.

Tests

  • On screen: e2e_menubar.py all pass, including new checks: hover and tooltip on Settings and Quit after a real icon click; Esc closes. e2e.py, e2e_caret.py, e2e_syszoom.py all pass (Magnifier key path touched).
  • mac/ui: Playwright 344 passed (new: host-driven hover and tooltips, no native titles); npm run test:rules 26 passed. swift run wind-checks pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SkyGaRR4SfGTQsbXTHuVBA

Owner: no hover on Settings or Quit and nothing said what the icons
were. macOS refuses to activate Wind now and then when the panel opens
(e2e_menubar: active false, key false), and WebKit draws hover and
shows title tooltips only while its app is active; keys then also go
on to the app behind.

- PanelPointerView tracks the pointer with an .activeAlways tracking
  area and calls window.__windPointer; the page sets a hov class (rules
  :global, or Svelte strips them) and draws its own tooltips from
  data-tip after 500 ms, for every icon-only control.
- The panel is non-activating, so it is key and clicks land whether or
  not activation is allowed; activation is still asked for (keyboard)
  and handed back on close.
- Esc is taken by Wind's event tap while the panel is open.
- e2e_menubar: hover and tooltips after a real icon click; Playwright:
  host-driven hover and tooltips, no native titles left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SkyGaRR4SfGTQsbXTHuVBA
@Maxaubert
Maxaubert merged commit 1c6f7ae into main Nov 23, 2026
1 check passed
@Maxaubert
Maxaubert deleted the fix/mac-panel-hover-tooltips branch November 23, 2026 07:48
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.

1 participant