Repository navigation
fix(native): auto-hide popup guard, clock replay point, hold logging - #552
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four small fixes for auto-hide and the clock click on macOS 27, one commit each.
AutoCollapse: holding for <reason>log line per reason per expansionNotes for review
StatusBarControllerhas no test seam, so the last two commits have no new tests.Tests
Run in the mac-ui VM,
Hidden Barscheme,Debug-Direct, with-only-testing:AutoCollapsePopupGuardTests: 18 passed. Negative control: the two new tests fail on the oldhangs.NativeVisibilityEngineTests: 42 passed. Negative control: the pointer test fails withreplayPointstubbed to the centre.Hidden Bar App Storebuild-for-testing succeeded.