nikitabobko / AeroSpace

AeroSpace is an i3-like tiling window manager for macOS
https://nikitabobko.github.io/AeroSpace/guide
MIT License
7.56k stars 124 forks source link

`workspace next` switches workspaces on two monitors #691

Open jonashaag opened 1 week ago

jonashaag commented 1 week ago

Describe the bug

I have ctrl-left/right bound to workspace --wrap-around prev/next.

Sometimes when I use that key binding AeroSpace switches two workspaces at the same time: the one on the focused monitor, and the one on the other monitor, and it gives focus to the workspace/window on the other monitor.

I think this only happens when there are multiple windows of the same application on different monitors, or maybe this only happens when that application is iTerm2.

Related issues you could find

None that are open.

H0fes commented 1 week ago

I can confirm a similar behavior when using focus-monitor.

E.g. firefox is opened on workspace 1 monitor 1 and i am on workspace 2 monitor 1 and i want to switch to monitor 2 on workspace 3 using 'focus-monitor next --wrap-around' the focus will first go to workspace 3 on monitor 2 and then switch to workspace 1 monitor 1 to firefox.

It seems that we are facing the same problem. And i also only have this behevior when firefox is openend twice as described.

mrtolkien commented 1 week ago

I've had a similar behavior with workspace-back-and-forth.

It does indeed happen when:

The result is that I1 gets focused instead of switching workspace to focus I2.

It's pretty annoying with web browsers (using Zen Browser), where I'm using webapps to run non work-related chatting apps for example.

mrtolkien commented 1 week ago

After testing more that's not the exact behavior.

Sometimes, even just changing focus (without wrap) switches workspaces if the focus action would focus an application that also has a window open in another workspace on another monitor.

I have confirmed this only happens in multi-monitor setups.

I can't seem to reliably replicate this unfortunately, but there's definitely a whole swat of bugs related to having multiple instances of the same app on multiple workspaces... Which was for me the whole point of using Aerospace 😅