-
-
Notifications
You must be signed in to change notification settings - Fork 687
Description
Issue
NSDocument-based applications send window created notification on tab creation.
This is a re-iteration of the same issue with chunkwm (https://github.com/koekeishiya/chunkwm/issues/235).
I have created another radar for this issue now that the Catalina beta is a thing. This time around, I got an answer: Works as expected.
iPad apps brought to the Mac using Catalyst have the same behaviour, so this should probably be fixed before the release of macOS 10.15 Catalina.
Proposed fix
Investigate how Amethyst works around this and replicate the behaviour in yabai.
Here's what they're doing from my understanding: When a kAXWindowCreated notification triggers, check whether the window has the same position and same size as another window of the same application. For applications like Terminal, some tolerance is needed because the window size may change ever so slightly when changing tabs.