alt-tab-macos
alt-tab-macos copied to clipboard
Closing the last Preview.app window then alt-tabbing away picks the wrong window
Hi, I love AltTab, thank you for maintaining it! ❤️
Describe the bug
Closing the last Preview.app window and then alt-tabbing away picks the second window in the list, not the first.
This only occurs when Hide apps with no open window
is enabled.
Video
https://github.com/user-attachments/assets/f3a112f0-6bf6-4f29-99b1-ff4f08aef4bc
In this video, after closing Preview I'm expecting it to pick the left window, but it picks the right.
Steps to reproduce the bug
- Ensure
Appearance
->Hide apps with no open window
is enabled - Ensure Preview is closed (with ⌘+Q)
- Open Finder
- Open a Preview file (let's say an image). Preview should appear.
- Close the Preview window with ⌘+W. Preview is still focused, but no window is open. (top bar says Preview, the window underneath is not focused)
- Hold ⌘ and tap ↹
- Observe that the second item in the list is focused, not the first -- this is the bug
- Release ↹ to switch to that window. In this example, it's whatever was active before the Finder window we visited.
These act normally though
- Same but replace steps 2-4 with just "launch a fresh Preview.app with no windows". Then in step 7, the first item will be focused correctly.
- Same but in step 5, close Preview with ⌘+Q (this doesn't go via AltTab, it just focuses the previous window)
Your environment
- AltTab version: 6.72.0
- macOS version: 14.7
- AltTab's blacklist includes
com.apple.finder
:Hide in AltTab
=When no open window
. I think this is the default.