koekeishiya / yabai

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

Yabai + Arc spaces switching #2269

Open corruptmane opened 6 months ago

corruptmane commented 6 months ago

When I switch from space with Arc browser to the first space (Desktop 1), I can see in MacOS native status-bar that focus did change to the window that is on the first space, but then immediately focus changes back to Arc while space is opened. Command that I'm using to switch between spaces is next:

yabai -m space --focus 1 || yabai -m space --focus recent; sketchybar --trigger window_focus

The issue persists regardless if I'm using skhd or execute command directly from terminal.

Here is a little screen recording of the issue:

https://github.com/koekeishiya/yabai/assets/40265576/14219452-1efb-44cf-b5b4-8df74b2f2ffd

I have to mention that this issue does persist only when switching from any space with Arc in focus to first space. The application that is launched in first space does not matter, focus does not switch to neither kitty nor telegram nor spotify. No errors were printed when trying to switch spaces from terminal as well as no errors in yabai log file. yabai version is yabai-v7.1.0.

yujinyuz commented 5 months ago

Also happens to me when but I'm using Microsoft Edge.

MS Edge is in Space 1 and if I switch to an empty Space (3), it goes back to Space 1. But if I switch back again, the problem doesn't occur

EDIT:

It seems that the problem I had got fixed after disabling When switching to an application...

image
sycstitch commented 5 months ago

So I know this was 3 weeks ago, but this issue might be because of Arc and not yabai. I say this because I haven't even installed yabai yet and the focus will sometimes switch to the main Arc window when a little Arc is opened (e.g. from a link in an email), or the focus will stay on the main Arc window and I have to manually swipe to another space in order to see the little Arc window.

I will say though I mainly have Arc fullscreen, so it could still be yabai, but I'm not sure.

corruptmane commented 5 months ago

So I know this was 3 weeks ago, but this issue might be because of Arc and not yabai.

Well this is exactly what I said in the issue. But I have to admit, I've recently switched to amethyst, so spaces switching there are handled via macos native hotkeys, and this issue no longer persists. So it must be yabai problems and not Arc, at least in my case.

thiagomeireless commented 5 months ago

I also have the same problem and I don't even use Arc, so it's definitely something in Yabai or some MacOS config that's conflicting with Yabai 🤔