asmvik/yabai

Handle native tabs properly

Open

#68 aperta il 25 giu 2019

Vedi su GitHub
 (62 commenti) (56 reazioni) (0 assegnatari)C (713 fork)batch import
bughelp wanted

Metriche repository

Star
 (28.871 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor