Opening a new Ghostty tab on MacOS causes strange tilings with tiling window manager (yabai) #10061
-
Issue DescriptionWhen opening a new tab in a ghostty window while running a tiling window manager (in this case, yabai) on macOS, the WM treats the new tab as a new window. It will make the overall ghostty window half its original size, with a blank space representing the first tab's "window", and the second tab's window occupying the same footprint as if I had opened a second window. Switching to the first tab moves the (single) ghostty window to the first tab's space. Closing the tab causes the WM to tile the ghostty window correctly. I recognize that this could just be a bug with yabai, but as it only happens when opening tabs in ghostty, I suspect it has something to do with how ghostty registers the existence of tabs to the system. Expected BehaviorI would expect the window ghostty is in to stay the same, as shown below (tiling window manager off):
i.e. the expected behavior is that opening a tab in ghostty should not be registered by the system as a new window being open. Actual BehaviorOpening new ghostty tabs is treated by the tiling window manager as a new window being opened, and the window is tiles accordingly. See below: Closing the tab is treated as closing a window (and the Ghostty window with the remaining tab is re-tiled correctly). NB: This doesn't happen with splits. Reproduction Steps
Ghostty LogsNo response Ghostty VersionOS Version InformationmacOS 26.1 (25B78) (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty ConfigurationHappens with default config.Additional Relevant Configuration~/.config/yabai/yabaircyabai -m config layout bsp I acknowledge that:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
This is well understood and discussed. Google around. |
Beta Was this translation helpful? Give feedback.
-
|
I added the following to my yabai -m signal --add app='^Ghostty$' event=window_created action='yabai -m space --layout bsp'
yabai -m signal --add app='^Ghostty$' event=window_destroyed action='yabai -m space --layout bsp' |
Beta Was this translation helpful? Give feedback.


This is well understood and discussed. Google around.