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 into spaces stopped working in MacOS Sequoia 15.1.1 #2500

Open
vgnshiyer opened this issue Dec 13, 2024 · 22 comments
Open

Moving window into spaces stopped working in MacOS Sequoia 15.1.1 #2500

vgnshiyer opened this issue Dec 13, 2024 · 22 comments

Comments

@vgnshiyer
Copy link

Earlier I used to be able to move current focussed application to desired space and switch focus. Right now, only the focus moves , but the application stays in the current space.

shift + cmd - 1 : yabai -m window --space  1; yabai -m space --focus 1
shift + cmd - 2 : yabai -m window --space  2; yabai -m space --focus 2
shift + alt - 3 : yabai -m window --space  3; yabai -m space --focus 3
shift + alt - 4 : yabai -m window --space  4; yabai -m space --focus 4
@aspauldingcode
Copy link

Sonoma?

@vgnshiyer vgnshiyer changed the title Moving window into spaces stopped working in MacOS Sonama 15.1.1 Moving window into spaces stopped working in MacOS Sequoia 15.1.1 Dec 17, 2024
@vgnshiyer
Copy link
Author

I stand corrected. Thanks

@m8524769
Copy link

Same issue. (>﹏<)

@marc-ko
Copy link

marc-ko commented Dec 17, 2024

shift + alt - 1 : yabai -m window --space 1;
shift + alt - 2 : yabai -m window --space 2;
shift + alt - 3 : yabai -m window --space 3;
shift + alt - 4 : yabai -m window --space 4;
shift + alt - 5 : yabai -m window --space 5;
shift + alt - 6 : yabai -m window --space 6;
shift + alt - 7 : yabai -m window --space 7;

Same commands doesn't work in the Sequoia 15.2

> csrutil status

System Integrity Protection status: unknown (Custom Configuration).

Configuration:
	Apple Internal: disabled
	Kext Signing: enabled
	Filesystem Protections: disabled
	Debugging Restrictions: disabled
	DTrace Restrictions: enabled
	NVRAM Protections: disabled
	BaseSystem Verification: enabled
	Boot-arg Restrictions: disabled
	Kernel Integrity Protections: enabled
	Authenticated Root Requirement: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

even with SIP Disabled following the yabai wikis

@patrickxchong
Copy link

Facing the same using in Sequoia 15.2. In my case I don't have SIP disabled, but it did work without SIP disabled on 14.7.1.

@pm0u
Copy link

pm0u commented Dec 30, 2024

Wish i saw this before i upgraded 😢 same issue here. SIP enabled, worked before with it enabled.

@pm0u
Copy link

pm0u commented Dec 30, 2024

#2484 (comment)

  • SIP will now prevent this from working.

@HYAdev
Copy link

HYAdev commented Dec 30, 2024

I'm personally moving to aerospace. It doesn't require disabling SIP, but you can still move application to a different workspace (can verify it works on macOS 15.2).

@pm0u
Copy link

pm0u commented Dec 30, 2024

I'm personally moving to aerospace. It doesn't require disabling SIP, but you can still move application to a different workspace (can verify it works on macOS 15.2).

Based on a quick read, I like the philosophy. I will check it out - thanks for the recommendation. Must be the separate workspace implementation that allows it to get around SIP.

@aspauldingcode
Copy link

I believe in koekeishiya. I think yabai has the right implementation.

@pm0u
Copy link

pm0u commented Dec 31, 2024

I believe in koekeishiya. I think yabai has the right implementation.

i wasn't saying that there is anything wrong with this approach or library, i have been a user of it for years and been happy. Unfortunately due to circumstances out of the developer or my control, its no longer viable for me so i have to move on sadly. Options are never a bad thing.

@LvQingRui
Copy link

you can use

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

It worked for me!

@pm0u
Copy link

pm0u commented Jan 3, 2025

That is only going to work with SIP disabled

$ sudo yabai --load-sa
yabai: System Integrity Protection: Filesystem Protections and Debugging Restrictions must be disabled!

@marc-ko
Copy link

marc-ko commented Jan 12, 2025

That is only going to work with SIP disabled

$ sudo yabai --load-sa

yabai: System Integrity Protection: Filesystem Protections and Debugging Restrictions must be disabled!

Moving windows are still not working even with SIP partially disabled in MacOS 15.2 in my side

May I ask if it works in your side?
Currently using the latest yabai version

@LvQingRui
Copy link

That is only going to work with SIP disabled

$ sudo yabai --load-sa

yabai: System Integrity Protection: Filesystem Protections and Debugging Restrictions must be disabled!

Moving windows are still not working even with SIP partially disabled in MacOS 15.2 in my side

May I ask if it works in your side? Currently using the latest yabai version

My solution worked (with SIP disabled). My MacOS version is 15.2 and yabai is also the latest version.
If you have any questions, please contact me ([email protected])

@ermyril
Copy link

ermyril commented Jan 29, 2025

@koekeishiya, sorry for pinging about this issue again

Can you please give your opinion on possibility of making it work in the future, how does that look for us? As in official press release :D

Afaiu, apple is blocking/patching these things and our prospects are looking bleak in terms of making yabai work without sip in the future?

Is there still hope for us?

I'm among a subset of users who are using yabai on work laptops, so unfortunately, even if technically possible, disabling SIP for us may lead to severe repercussions

It pains me to even think about embarking on a journey in seek of alternative options (in existence of which I'm not sure, many times mentioned aerospace looks incredibly hacky with the whole app built on top of a weird workaround)

Hope I can still downgrade my laptop to 14

Or maybe you can suggest any possible workarounds, for example - I'm fine with manually dragging windows to different spaces, but currently windows snap back on their original space either way, is this behavior seemingly fixable?

Regardless of outcomes, thank you a lot for a tremendous work on yabai over all those years, I've been using yabai for more than 8 years (chunkwm then), it was and still is an inherent and irreplaceable part of my workflow and it made my life so much better over all those years, thank you a lot!

@patmuk
Copy link

patmuk commented Feb 3, 2025

Looks like there is hope: Amethyst made it work again in an update to version 0.22.0 and BetterTouchTool can do it as well. I am running MacOS 15.3 (Sequoia).
As I have BTT running anyways (for the clipboard) I am going to configure the keyboard shorts with it now (instead of skhd), staying with yabai :) Space handling will be taken over by BTT.

@koekeishiya
Copy link
Owner

The Amethyst version is restricted to moving windows across spaces by emulating a mouse-down event, emulating the switch to desktop shortcut, and a mouse-up event.

This has a couple of differences from the yabai version (that now requires SIP to be disabled).
The window to be moved must have a clickable titlebar, and you cannot move a window to a space without also activating that space.
You can also not move a window from an inactive space to an active space.

These are unfortunately all restrictions that make this version not suitable for implementation in yabai.

I am not sure how BTT does it, but I assume they have similar restrictions.

@patmuk
Copy link

patmuk commented Feb 3, 2025

Oh, thanks for explaining. Yes, that sounds quite different and a lot of effort to implement as an alternative.
For me the BTT workaround is fine. If you like I can try if BTT is unable to move a window without a clickable title as you mentioned. Do you have an app in mind that has such a window?

Since I have your ear - thanks for the great work you did with yabai (and skhd as well)! I am happy that I can stay.

As a side-note: I could disable SIP on my Mac - but I am hesitant, as I think my Mac would be to vulnerable. However, I trust yabai - so if there would be a way to disable SIP for yabai only (or sign/trust it) that would be great! But I assume SIP is an all-or-nothing implementation from apple.

@koekeishiya
Copy link
Owner

So my go-to for titlebar-less applications are usually terminal emulators (I use Kitty, many people like iTerm2) or video players (mpv, iina), but I am sure there are others too. I think qutebrowser (webbrowser) supports this type of mode.

I do understand not wanting to disable SIP, and unfortunately it is not possible (that I know of) to just whitelist/authorize a specific application for the kind of access we need.

@patmuk
Copy link

patmuk commented Feb 3, 2025

Thanks.
I can confirm your assumption: When I disable the title bar in kitty I can't move the window to another space with BTT. When the title bar is enabled it works.

@alber70g
Copy link

alber70g commented Feb 4, 2025

I just want to report that after updating everything started working again

MacOS Sequoia 5.3, yabai 7.1.1

❯ sudo yabai --load-sa                                                                                                                                                                                                                (base)
Password:
yabai: scripting-addition failed to inject payload into Dock.app!
❯ csrutil status                                                                                                                                                                                                                       (base)
System Integrity Protection status: disabled.

👍 After update to Yabai 7.1.6 everything started working again

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