2 ms·
How does your WM work? I was under the impression that a true tiling WM was impossible on OS X, and that programs like Slate were the best compromise. Edit: De
by jrajav 14y ago
How does your WM work? I was under the impression that a true tiling WM was impossible on OS X, and that programs like Slate were the best compromise.
Edit: Details please.
- mej10 14y agoBy using the Accessibility APIs. I imagine the core is implemented pretty similarly to Slate as I think there are only a couple ways to implement window management features. It is pretty hacky in parts. For example, some windows have an absolute minimum size that they can't be resized beyond, so I have some logic that figures that out and deals with it. The hiding/showing of windows is also not as robust as I would like, but it works. There are a lot of other examples where I have added things based on observation, rather than documentation.
- rjzzleep 14y agoit's not impossible the problem is that the real wm is just a stub and the main windowmanager is written into one of the core libraries. Last I remember you could compile code and link it to an existing library, or increase one of the sections and add loader code for your own binary, but I don't however know if this is still possible with code signing in the newer osx's. The main problem is that you'd have to disassemble everything since it's completely undocumented terrain. Although on the otherhand if it's objc assembly you might just be lucky, since that reads pretty much like a text book.