I this issue on my alt-tab-macos instance:
When I move to the right windows, selector return always after some milliseconds to second item.
It is very boring, alt-tab-macos is unusable for me 馃様
Best regards,
St茅phane
I can't reproduce the issue on my machine unfortunately, so it's hard to guess what's happening here.
It seems the focused window is reset to index 1, multiple times. In the code there are 4 places where there the index is set.
This is on mouse click so unlikely to be the one at play here
https://github.com/lwouis/alt-tab-macos/blob/5c51decf6949aba0d26969c46474934145df3109/src/ui/main-window/ThumbnailsView.swift#L33
This one happens when you invoke the UI initially, so again I don't think it's this
https://github.com/lwouis/alt-tab-macos/blob/48d5d6305ee370ee70079e008f34e27331dea1a8/src/ui/App.swift#L150
This one can be triggered by many things, but it is a variable step from the current selected window. In your video, which ever is the current selection is clearly resets to exactly index1, so I would say unlikely:
https://github.com/lwouis/alt-tab-macos/blob/5c51decf6949aba0d26969c46474934145df3109/src/logic/Windows.swift#L30
This leaves us with our candidate:
If my assumption is right and you have some process being restarted continuously, this is not a normal situation on your machine. Still, there is also a bug in AltTab to reset focus like this.
I pushed a potential fix on the more-l10n branch, which i aim to merge in a PR sometime this week, together with a bunch of other improvements. This will auto-trigger a new AltTab release that hopefully fixes the issue for you!
if my assumption is right and you have some process being restarted continuously, this is not a normal situation on your machine
Thanks, @lwouis how can I see it?
I'm not sure. You could open Activity Monitor and see if you can visually find something moving in and out of the list, maybe by playing with the table sorting
You could open Activity Monitor and see if you can visually find something moving in and out of the list
@lwouis I see nothing.
For information, on my laptop, I use 馃憤
@stephane-klein is the problem still happening btw? What if you reboot, still happening?
If yes, could you please try this build? AltTab.app.zip Update: a new version has been release. You can simply click the update button:

It's a build of the branch where I made a tentative fix for the issue. I would like to know from you if it fixes it 馃憤
@lwouis issue fixed after upgrade to last version 3.7.3 馃憣
Thanks you !
Most helpful comment
I can't reproduce the issue on my machine unfortunately, so it's hard to guess what's happening here.
It seems the focused window is reset to index 1, multiple times. In the code there are 4 places where there the index is set.
This is on mouse click so unlikely to be the one at play here
https://github.com/lwouis/alt-tab-macos/blob/5c51decf6949aba0d26969c46474934145df3109/src/ui/main-window/ThumbnailsView.swift#L33
This one happens when you invoke the UI initially, so again I don't think it's this
https://github.com/lwouis/alt-tab-macos/blob/48d5d6305ee370ee70079e008f34e27331dea1a8/src/ui/App.swift#L150
This one can be triggered by many things, but it is a variable step from the current selected window. In your video, which ever is the current selection is clearly resets to exactly index1, so I would say unlikely:
https://github.com/lwouis/alt-tab-macos/blob/5c51decf6949aba0d26969c46474934145df3109/src/logic/Windows.swift#L30
This leaves us with our candidate:
https://github.com/lwouis/alt-tab-macos/blob/5c51decf6949aba0d26969c46474934145df3109/src/logic/Applications.swift#L64