Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kitty is weirdly aligned when using "traditional fullscreen" #2417

Open
stroiman opened this issue Sep 10, 2024 · 0 comments
Open

Kitty is weirdly aligned when using "traditional fullscreen" #2417

stroiman opened this issue Sep 10, 2024 · 0 comments

Comments

@stroiman
Copy link

stroiman commented Sep 10, 2024

First of all, thanks for this tool. Yabai is absolutely awesome and a productivity booster for me.

Second, I am not able to determine if this is an issue with yabai, or kitty, but my initial guess would be that this is not something kitty would be able to control.

But the issue is that when I enter full-screen with kitty, the top-left corner is shifted when using "traditional full screen"

It appears that kitty displayed in a "window" that has the correct size, as the window is overflowing the edge of the screen in the bottom right corner.

image

The space is consistent with the padding I have configured

# yabairc
yabai -m config top_padding 20
yabai -m config left_padding 20
yabai -m config right_padding 20
yabai -m config bottom_padding 20
yabai -m config window_gap 20

The screen shot shows extra space on top, but must be because the size of the hidden menu bar has been included in the calculation. Moving the cursor to the top to reveal the menu bar reveals that the paddings appear consistent top and left.

image

I've set the "Traditional fullscreen" for kitty as that makes it stay on the space where I have decided I want it to be.

There is no issue, if you keep the default option; then it works exactly as it should. But I dislike the default as MacOS moves the application to a new space it creates for it. I want it to stay where it is in the space numbering, and how I aligned spaces.

# kitty.conf
macos_traditional_fullscreen yes

Workaround

I have a workaround, so this only a very minor nuisance I can easily live with.

If I stop yabai before swithing to full screen in Kitty, and start yabai afterwards, it's fine.

I have skhd sortcurts for those operations anyway (not because of kitty, but because it's generally useful to disable yabai occasionally anyway)

# skhdrc
ctrl + cmd + alt - q : yabai --stop-service
ctrl + cmd + alt - s : yabai --start-service

So the keyboard sequence ctrl+cmd+q, fn+f, ctrl+cmd+s places kitty correct in fullscreen on the space it was launched.

It appears that if Kitty was already in fullscreen, when yabai starts, exiting and reentering fullscreen works "correctly". I.e. until I quit Kitty, I don't need the workaround anymore; as long as the window stays on the same space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant