Skip to content

Restore layouts using windows from the current Space only #34

Description

@olerida

Problem

When two layouts in different macOS Spaces contain windows from the same app, restoring the second layout may select an Accessibility window from the first Space. Settle then moves/repositions that window there, leaving the current Space incomplete and preventing the second layout from becoming active.

Reproduction

  1. Restore layout L in Space S; L contains a window from app A.
  2. Switch to Space S2.
  3. Restore layout L2; L2 also contains a window from app A.
  4. Settle reuses the app A window from Space S instead of a window in S2.

Expected behavior

  • Restore and reposition only app windows that belong to the current Space.
  • Never reuse or move a window from another Space.
  • If the app has no suitable window in the current Space, request a new window there when the app supports it.
  • If a new window cannot be created, report it as unresolved without modifying windows in other Spaces.
  • Support multiple required windows from the same app without reusing one window twice.

Validation

Test with two layouts in separate Spaces sharing at least one app, including an app that supports multiple windows. Confirm both layouts remain intact and are independently detected as active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:appNative macOS app workbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions