tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
690 stars 66 forks source link

Move window to another desktop #81

Closed ziulev closed 2 years ago

ziulev commented 3 years ago

I could not find in the documentation how to move a window from one desktop to another?

I can do window.frame.set(... But this only works within the current desktop

tmandry commented 2 years ago

Just to make sure, do you mean another space, or to another screen?

Moving windows between spaces requires private APIs which I haven't used yet. I think we could make this an optional feature of the library. See also https://github.com/tmandry/Swindler/pull/78#issuecomment-864697597.

ziulev commented 2 years ago

I mean to another space, Ok, thank you for the answer