Flickering between workspaces on window close #1048
Replies: 1 comment
-
This has been a slight annoyance for me as well - repro steps (as mentioned above, Chrome can be just about any app here):
Step (3) unexpectedly switches to workspace 1. If workspace 2 has windows apart from Chrome, then step (3) causes a flicker where we rapidly switch to 1 then back to 2. This is jarring and also pollutes back-and-forth focus history. I suspect this is due to this unfortunate built-in macOS behavior: https://discussions.apple.com/thread/253850777. I don't see a clean way to turn off that behavior, but I had some luck working around it with a change like this:
The change disables syncing native focus to windows that are not on the currently focused space. This has the downside of breaking non-AeroSpace-aware application switching. For example, with this change, command-tab and command-backtick no longer trigger workspace switching. In addition, command-tab/command-backtick can transfer focus to a window that is hidden by AeroSpace, potentially allowing keyboard inputs to invisibly go to unexpected windows. Note that this is already possible today - if you switch from a non-empty workspace to an empty workspace, the previously focused window retains focus and receives keyboard input even though it has been hidden. Personally, these tradeoffs are worth the benefit for me since I would like to do all of my application switching via AeroSpace. I actually prefer that command-tab switches apps without switching spaces, but I have to admit that the command-backtick behavior is not ideal. fwiw, I also tried out a different option where we stop syncing cross-workspace native focus changes for a brief period after an app window is closed:
This works for me and preserves the existing command-tab/command-backtick behavior, but I do worry that these time-based mechanisms can behave jankily when things are slow. Curious if folks have more thoughts on a good path for fixing this! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When closing a window, if there is another window of that same application in another workspace, it will jump to that before jumping back quickly to where it should be (the workspace where the window was closed). It is a quick flicker, but still noticeable and jarring. This seems to happen for any application: Kitty, Chrome, Finder. I haven't found any other bug report or post describing this exact problem.
I am on the latest version of aerospace and macOS. This happens with the example config too.
Beta Was this translation helpful? Give feedback.
All reactions