koekeishiya / yabai

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

Floating windows moved to a different display have bad frame position ("x" and "y" coordinates) #2292

Open ywwry66 opened 6 months ago

ywwry66 commented 6 months ago

Moving a window with yabai -m window --display or yabai -m window --space to a space inside a different monitor/display leaves the "x" and "y" values (under "frame" entry in the output of yabai -m query --windows) unchanged. This puts the window totally outside the viewable range of the new display, kind of like it is hidden. So the window is not readily usable without a subsequent command like yabai -m window --grid.

This behavior is new since the fix https://github.com/koekeishiya/yabai/commit/98bbdbd1363f27d35f09338cded0de1ec010d830 for Sonoma 14.5. Is it possible return to the old behavior, that moving around a floating window always leaves the window more or less centered in the screen and ready to use?

Thanks a lot!

Jacksgong commented 6 months ago

since Sonoma 14.5, move window to another display is not working through yabai -m window --display or --space, the window to be move by yabai is just disappeared.(but move to another space(not physical display space) is fine)

Jacksgong commented 6 months ago

since Sonoma 14.5, move window to another display is not working through yabai -m window --display or --space, the window to be move by yabai is just disappeared.(but move to another space(not physical display space) is fine)

I temporarily use Rectangle to realize such function.