Skip to content

fix(native): auto-hide popup guard, clock replay point, hold logging - #552

Merged
tieubao merged 5 commits into
developfrom
fix/collapse-guard-clock
Nov 18, 2026
Merged

tieubao merged 5 commits into
developfrom
fix/collapse-guard-clock

Conversation

@tieubao

@tieubao tieubao commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Four small fixes for auto-hide and the clock click on macOS 27, one commit each.

Commit Change Issue
popup guard geometry Windows under 8 pt wide or tall no longer count as menu bar popups, and a popup that starts above the bar now counts Fixes #548
clock replay point The replayed clock click lands where the pointer already is, so the pointer no longer jumps to the clock centre Refs #547 (pointer part only)
hold logging One AutoCollapse: holding for <reason> log line per reason per expansion diagnosis for #550
Settings window hold The Settings window pauses auto-hide only with "Make room for icons while they are shown" on (or a Shift-click full bar) Refs #550, cause not yet confirmed by the reporter

Notes for review

Tests

Run in the mac-ui VM, Hidden Bar scheme, Debug-Direct, with -only-testing:

  • AutoCollapsePopupGuardTests: 18 passed. Negative control: the two new tests fail on the old hangs.
  • NativeVisibilityEngineTests: 42 passed. Negative control: the pointer test fails with replayPoint stubbed to the centre.
  • Hidden Bar App Store build-for-testing succeeded.
  • The full suite was not run locally. CI covers both schemes.

…at start above the bar

The geometry check counted a 1 pt wide or tall screen-edge window (a KVM
hot border) as a menu bar popup, which blocked auto-collapse and the
click-outside dismissal. It also rejected a real popup whose top edge sits
above the band. Windows under 8 pt on a side no longer count, and a popup
may start above the band.

Fixes #548
…centre

The synthetic click that opens Notification Center was always built at the
clock's centre and posted to the HID tap, which moved the user's pointer
there. It now lands on the current pointer position when that is inside
the clock, and on the centre otherwise. The pointer source is injectable
for tests; no cursor warping is added.

Refs #547
Only the popup guard logged why a collapse waited, so a bar that never
auto-hid could not be diagnosed from the log. The Settings window, the
new-apps prompt, Notification Center, the palette and the pointer in the
menu bar now log "AutoCollapse: holding for <reason>", once per reason per
expansion (the set clears where the expansion starts). Evaluation order
and short-circuiting are unchanged, so the window-list read still runs
last. No window titles or user content are logged.

StatusBarController has no test seam, so no unit test is added.
…l menu bar option on

The Settings window held auto-collapse with no time limit whenever it was
on screen. The reason is the full menu bar option: a collapse then
deactivates the app and dismisses the window mid-edit. With the option off
nothing is dismissed, yet Settings opens at every launch by default, so
auto-hide never fired while it stayed open. The window now defers only
when the collapse would deactivate the app (the option, or a Shift-click
one-off full bar).

Refs #550
@tieubao
tieubao merged commit 7c7aa00 into develop Nov 18, 2026
3 checks passed
@tieubao
tieubao deleted the fix/collapse-guard-clock branch November 18, 2026 15:01
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.

Auto-collapse and click-outside dismissal blocked by thin KVM hot-border windows etc.

1 participant