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

Moving window to next space, then focusing that space, doesn't focus that window #2316

Open
ixnas opened this issue Jun 5, 2024 · 3 comments

Comments

@ixnas
Copy link

ixnas commented Jun 5, 2024

I upgraded from Ventura to Sonoma 14.5 yesterday, and now the behavior for these commands has changed for me:

yabai -m window --space next ; yabai -m space --focus next
yabai -m window --space prev ; yabai -m space --focus pev

It used to focus the moved window after focussing the destination desktop, but now it doesn't anymore, requiring me to click that window to focus it. Also, many times after focussing the target desktop, it will quickly switch back once I focus the window.

I like to use these commands in quick succession to move windows across a few spaces. Does anyone have the same problem, and maybe a fix for it?

I'm using the latest version (v7.1.1).

Thanks!

Edit: I'm downgrading my machine for now, but I'm still interested in any fixes for this.

@loserc6
Copy link

loserc6 commented Jun 6, 2024

this works for me

yabai --restart-service
sudo yabai --load-sa

@pyinto
Copy link

pyinto commented Jun 8, 2024

why not
yabai -m window --space next --focus
?

@ognistik
Copy link

A workaround:

yabai -m signal --add event=space_changed action="yabai -m window --focus \$(yabai -m query --windows --space | jq .[0].id)"

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

4 participants