Some apps (for example a Java GUI toolkit) leave windows in the window
list that claim the current Space but are not on screen. These stale
buffer windows appeared as extra tabs.
Add kCGWindowIsOnscreen and kCGWindowAlpha to the CGWindowList read and to
the window dump. New filter rule: hide a no-AX window that is on the current
Space and not on screen, unless it is minimized. A real window on the
current Space is on screen. A real window on another Space is not on the
current Space, so the rule keeps it (decision D4).
Add WindowFilterTests for the stale, on-screen, and other-Space cases.
All 34 tests pass with xcodebuild test.
XCTAssertEqual with accuracy needs a non-optional value. Unwrap the
CGFloat? result of ConstraintMath.newHeight with XCTUnwrap. All 31 tests
pass with xcodebuild test.
EPOD Window Bar is a macOS agent app. It shows a thin strip above the Dock
with one tab per window of the frontmost application. One click raises the
window.
Build from source with XcodeGen and Xcode. Signing uses Config.xcconfig
(ad-hoc by default; a local Local.xcconfig can set a team ID). The app needs
Accessibility and Screen Recording permissions, and runs in a reduced mode
without Screen Recording.
See README.md and docs/ for details.