Skip to content

feat: support reading windows from all screens#48

Open
vivaxy wants to merge 2 commits intomandrigin:masterfrom
vivaxy:master
Open

feat: support reading windows from all screens#48
vivaxy wants to merge 2 commits intomandrigin:masterfrom
vivaxy:master

Conversation

@vivaxy
Copy link
Copy Markdown

@vivaxy vivaxy commented Apr 3, 2026

  • add CoreGraphics import and handle macOS 15+ screen recording permission
  • Add explicit CoreGraphics imports to Windows.swift and main.swift
  • Switch window list option from .optionOnScreenOnly to .optionAll
  • Add bounds.isEmpty guard to filter zero-size windows
  • Wrap deprecated CGWindowListCreateImage in compile-time conditional for macOS 15+ compatibility

resolve #11, #37

- add CoreGraphics import and handle macOS 15+ screen recording permission
- Add explicit CoreGraphics imports to Windows.swift and main.swift
- Switch window list option from .optionOnScreenOnly to .optionAll
- Add bounds.isEmpty guard to filter zero-size windows
- Wrap deprecated CGWindowListCreateImage in compile-time conditional for macOS 15+ compatibility
…current group

Replace AX-based window raising with CGSOrderWindow (WindowServer-level) and detect
Stage Manager by checking for absence of type-1 Mission Control spaces. In Stage Manager,
CGSManagedDisplaySetCurrentSpace is a no-op; app.activate() after CGSOrderWindow brings
the correct group to front without relocating the window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows for different spaces are not available

1 participant