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 Windows Across Spaces No Longer Works in MacOS 15.0 #2380

Closed
albertcai101 opened this issue Aug 5, 2024 · 13 comments
Closed

Moving Windows Across Spaces No Longer Works in MacOS 15.0 #2380

albertcai101 opened this issue Aug 5, 2024 · 13 comments

Comments

@albertcai101
Copy link

I recently upgraded to MacOS 15.0 and reinstalled yabai so all other commands like switching spaces and window focusing works.

However, moving windows to different spaces no longer works:

# send window to a space
rcmd - 1 : yabai -m window --space 1

When I run this, the focused window still remains in the current space. This code worked before the MacOS 15.0 upgrade.

@koekeishiya
Copy link
Owner

Works fine for me. Note that moving windows to other spaces on Sequioa requires SIP to be partially disabled and the scripting addition to be installed and loaded.

@albertcai101
Copy link
Author

albertcai101 commented Aug 6, 2024

I have installed yabai from HEAD and configured the scripting addition following the wiki.
My yabairc begins with

yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa

Also, looking at my error logs, yabai -m window --space 1 gives no errors but yabai -m space --focus next gives sh: focus_window: command not found once every time. I do not know if any of these are related.

EDIT: sudo yabai--load-sa works with no errors as well. However, moving windows across spaces still does not work.

@matt1fy
Copy link

matt1fy commented Aug 6, 2024

I’m on MacOS 14.4.1 and this happened all of a sudden too. Most windows will move across spaces just fine, but somehow one of them would just move half way and just breaks. I can still resize them with grid thankfully but it being sticky is bothering me.

My yabai was installled through HEAD and i am ahead in commits too. I was somehow able to temporary rectify the issue by destroying all spaces. But once i introduce new ones the affected windows will go back to being unmanaged.

@albertcai101
Copy link
Author

albertcai101 commented Aug 7, 2024

I tested every single command, and they all work except for Moving Windows to another Space. Specifically, these ones

# move window to previous space
yabai -m window --space prev

# move window to display focused before the current one
yabai -m window --display recent

# move window to space 2
yabai -m window --space 2

# move window to space 2 and switch to space 2 (works with both SIP enabled and disabled)
yabai -m window --space 2 --focus

ALL other commands work, which is strange. Nothing in error log. Also, SIP status is disabled.

@orikremer
Copy link

orikremer commented Aug 7, 2024

Experiencing the same on Ventura 13.6.8

Fixed for me after enabling screen recording.
Correction: Moving to display was resolved, not another space. :(

@Benjscho
Copy link

Benjscho commented Aug 8, 2024

Experiencing the same issue after upgrading to Ventura 13.6.8, enabling screen recording didn't fix. On yabai-v7.1.1. Similarly nothing in error log. Is there a more verbose debug mode?

@koekeishiya
Copy link
Owner

koekeishiya commented Aug 8, 2024

Upload Ventura 13.6.9 Dock.app and post it here or in a separate issue and the SkyLight.framework (needs to be extracted from dyld cache).

@ghaarm
Copy link

ghaarm commented Aug 8, 2024

Experiencing the same on Ventura 13.6.9

  • When trying to move space (next or number) yabai is just toggling between two apps.
  • skhd -V works properly.
  • yabai v7.1.1

Started when updating some days ago on 13.6.8.

  • Update on 13.6.9 didn't help.
  • Reinstalling yabai/skhd didn't help.
  • Reinstalling yabai from HEAD and configured the scripting addition following the wiki didn't help.
  • Enabling screen recording didn't fix it.

@koekeishiya
Copy link
Owner

koekeishiya commented Aug 10, 2024

Ventura 13.6+, Sonoma 14.5+, and Sequoia 15+ now all use the scripting addition to move a window to another space, and if the scripting addition is not installed, will attempt to use the fallback method introduced in Sonoma 14.5.

This fallback method was NOP'd by Apple in Sequoia 15+, so it does nothing there, so Sequoia requires the scripting addition for this functionality to work (and I have confirmed myself that it works on 15.0Beta 1,2,3,4,5 Apple Silicon).

I don't know if the fallback method works on Ventura 13.6+ as I do not have a Ventura machine, and cannot investigate without having both of the files mentioned in my comment above.

--

Applies to yabai v7.1.2.

@albertcai101
Copy link
Author

Can confirm, v7.1.2 now works on Sequoia Beta! Thank you so much :))

@ghaarm
Copy link

ghaarm commented Aug 10, 2024

Thanks a lot! Moving spaces is now working again with Ventura 13.6.9.

@gkzhb
Copy link

gkzhb commented Oct 19, 2024

With SIP enabled, I managed to move window to other spaces with some Hammerspoon coding:
ianyh/Amethyst#1643 (comment)

The core idea is to mimic the user actions to switch destop space while dragging a window, which will result in moving window to other desktop spaces.

@zt1983811
Copy link

With SIP enabled, I managed to move window to other spaces with some Hammerspoon coding: ianyh/Amethyst#1643 (comment)

The core idea is to mimic the user actions to switch destop space while dragging a window, which will result in moving window to other desktop spaces.

Is this function will be included in new release? I am still stack on Sequoia15+ is not able to move to other window

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

8 participants