Repository navigation
Move windows out from behind the dashboard - #45
Open
masonjmiller wants to merge 3 commits into
Open
masonjmiller wants to merge 3 commits into
masonjmiller wants to merge 3 commits into
Conversation
In kiosk mode the dashboard covers its display above every app window, so a window that lands there can't be seen or reached. macOS puts windows there more often than it seems: a new app opens on the display last clicked, an app reopens its windows where they were last closed, and windows go back to the dashboard's display when it wakes. WindowRescueService watches for apps coming forward, apps opening windows and the displays changing, and moves any standard window or dialog whose centre is on the dashboard to the display under the pointer (or the menu bar's, when the pointer is on the dashboard), centred and shrunk to fit. Minimised and full-screen windows are left alone. It needs the Accessibility permission. General has the switch, on by default, and an Allow button while the permission is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test host shares the bundle identifier, and macOS recorded its Accessibility attempt against the test build, taking the permission from the real app. Without the permission, don't make the calls at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
In kiosk mode, a window that opens on the dashboard's display now moves to the display you're using, instead of opening behind the dashboard where it can't be seen or reached.
Why
The kiosk dashboard covers its display above every app window. macOS keeps putting windows there anyway:
On a XENEON EDGE this happens several times a day. The window is open and active, but invisible, and the only way to get it back is to quit the dashboard or drag it blind.
How
WindowRescueServicewatches for an app coming forward or launching, for any window an app creates (anAXObserverper app), and for display changes. Each time, it checks that app's windows, or every app's on a display change.moveWindowsFromBehindDashboard, and existing layout files read as on.Windowslog category at notice level.Testing
xcodebuild testpasses in full: 393 Swift Testing tests in 38 suites. Six are new, for where windows go:swift-format is clean, and the build has no warnings.
On a XENEON EDGE above two Studio Displays (macOS 27.2), in daily use:
Overlap
#32 adds two toggles next to this one in
GlobalSettingsand General settings, and #36 adds lines next to this PR's inAppLogandAppModel. Both conflict only where lines sit side by side, and the fix is to keep both; I run this merged with #32. #30 merges cleanly.🤖 Generated with Claude Code