Open sindresorhus opened 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.
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.
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:
log stream --process Phoenix
Folder Peek - 0 - 0
is logged.