koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
23.31k stars 642 forks source link

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

Open ixnas opened 4 months ago

ixnas commented 4 months ago

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 commented 4 months ago

this works for me


yabai --restart-service
sudo yabai --load-sa
pyinto commented 3 months ago

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

ognistik commented 3 months ago

A workaround:

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