koekeishiya / yabai

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

[Bug] Move window to a space in another display doesn't work the latest release #2314

Open bethandtownes opened 1 month ago

bethandtownes commented 1 month ago

When I tried to move window between difference spaces in the same display, things works well. However, when I tried to move window from a space in display 1 to a space in display 2, the window disappears on both spaces. When run the query after the move, the information correctly says the window is on the new space in the other display however i cannot find the window in the other space, "Show All Windows" doesn't bring in up either.

I didn't disable SIP.

keithlee5 commented 1 month ago

I had the same issue and fixed it by updating my yabai version. when I ran:

yabai -m window --space 3

The window disappears, but it did not reappear in space 3 - version yabai-v7.1.0, mac Sonoma 14.5.

This was fixed for me when I updated my yabai version by running brew upgrade and restarted - make sure your yabai version is at least yabai-v7.1.1.

bethandtownes commented 1 month ago

my yabai version is 7.1.1 Screenshot 2024-06-04 at 9 03 30 PM

torgeir commented 1 month ago

Upgrading to yabai-v7.1.1 works for me too.

AhogeK commented 1 month ago

The same issue only occurs when the window is in a floating state, and the version is also 7.1.1.

Fisher-Wang commented 1 month ago

I have the same issue and the yabai version is also 7.1.1

bethandtownes commented 1 month ago

The same issue only occurs when the window is in a floating state, and the version is also 7.1.1.

Yeah, I can confirm that the window I am trying to move is also in floating state as well.

cristianoliveira commented 1 month ago

Confirming the issue with the latest version of macOs:

ProductName:            macOS
ProductVersion:         14.5
BuildVersion:           23F79

Upgrading to 7.1.1 fixed the problem. For those using nix and nix-darwin upgrade the nixpackages, upgrade to the latest version of them

nix-channel --update darwin
darwin-rebuild changelog
Fisher-Wang commented 1 month ago

I find a workaround, by using the author's skhd config:

# float / unfloat window and restore position
alt - t : yabai -m window --toggle float --grid 4:4:1:1:2:2

when you move a window to a new space and it doesn't appear, simply press opt - t twice and everything works well