kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.36k stars 129 forks source link

Windows of zero size should be ignored #306

Open sindresorhus opened 2 years ago

sindresorhus commented 2 years ago

My app has a helper window that is 0x0 in size. It cannot be made invisible because of SwiftUI limitations. I think Phoenix should ignore such windows.

Reproduce:

kasper commented 2 years ago

@sindresorhus Hmm! 🤔 This is a good observation, my initial feeling is that we should leave the filtering to the user of the API. Then again you could state that we could automatically filter this if the visible optional is true.

sindresorhus commented 2 years ago

I don't see how returning such windows to the user would ever be useful. For example, each menu bar item is made up by a window, so with that logic, you should include all those windows too. However, this is just my recommendation as a Mac developer. I don't use this app, so I have nothing invested in the conclusion of this. The incompatibility was just reported to me by @mafredri.