Repository navigation
Description
What happens
With Keep windows clear of the bar on and System Settings → Desktop & Dock → Double-click a window's title bar to set to Fill, double-clicking a window's title bar leaves it filling the screen under the bar. StableBar shrinks the window, macOS puts the filled frame straight back, and StableBar doesn't try again. The window stays under the bar until it is moved.
A user reported it with Calendar and Ardia on a 14-inch MacBook Pro: their screenshot shows Calendar's toolbar and window buttons under the bar.
Steps to reproduce
- Turn on Keep windows clear of the bar, with Accessibility access and no window manager.
- Set Double-click a window's title bar to to Fill, then open Calendar (an app reads the setting when it launches).
- Double-click Calendar's toolbar.
Expected
The window fills the area below the bar, as it does with Zoom.
Environment
- Reporter: macOS 27.2.1, 14-inch MacBook Pro (M1 Pro, notch), menu bar hidden by StableBar, no window manager.
- Reproduced: StableBar 0.19.0 and
mainat 8590fcd in a macOS 27.2 tart VM. Calendar, Ardia and Discord all stay under the bar with Fill, on every try; with Zoom or the default setting, all three are corrected.
Evidence
A logging build in the VM:
538.133–538.330 12 × AXWindowResized Fill animates the window to 0,0 1024x712
538.489 set size 1024x672 -> success, now 0,0 1024x672
538.497 AXWindowResized macOS puts 0,0 1024x712 back
538.651 skip: already adjusted from this frame
With StableBar paused, a probe shrank a filled window after a set quiet time. macOS put the filled frame back for every shrink less than about 330 ms after the animation's last frame; every shrink at 350 ms or later stayed (10 runs). StableBar acts 150 ms after the last notification.
Diagnosis
WindowClearance.adjustWindows (Sources/StableBar/MenuBar/WindowClearance.swift) remembers the frame it adjusted a window from, in adjustedFrames, and skips the window while it keeps that frame. That stops it from fighting an app that refuses a change (#621), but it also gives up when macOS undoes the change once, as it does for a window it has just filled. A retry after a longer wait, at most a few times, would keep both.
Related
- Keep windows clear ignores a window moved back to its previous position #621 / fix: keep windows clear after repeated moves to the same position #623 added the guard and clearing it once the window is clear; this is the case where the change is undone by macOS instead of refused by the app.
- Keep windows below StableBar without a tiling window manager #47 / feat: keep windows clear of StableBar without a tiling window manager #48 introduced window clearance.
- Separate, smaller finding from the same testing: right after an app launches, its Accessibility registration can fail (
-25204) and is only retried on the next app switch, so a new window can stay under the bar until then. Not filed yet.
Triaged by Claude Code (claude-opus-5-5).
Activity
refactor: compare window frames explicitly in WindowAdjustment
docs: say a filled window moves clear of the bar, not below it
fix: keep window clearance's tries for a window it can't change yet
fix: shrink a window clearance can't move when that alone clears the bar
fix: look at a window again after clearance changes it, even if that …
chore(release): 0.20.0 [skip ci]
stablebar-releases commentedon Nov 29, 2026
🎉 This issue has been resolved in version 0.20.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀