lwouis / alt-tab-macos

Windows alt-tab on macOS
https://alt-tab-macos.netlify.app
GNU General Public License v3.0
10.55k stars 321 forks source link

Alt-tab randomly gets stuck on select screen for unknown reason #3567

Open pawelkontek opened 2 weeks ago

pawelkontek commented 2 weeks ago

Describe the bug

The Alt-tab randomly gets stuck on the select screen for an unknown reason. Please see video.

Screenshots / video

(It is best to watch with sound to understand when I am pressing cmd+tab to switch tabs) https://github.com/user-attachments/assets/645529ef-be38-4d88-b1d4-214abe82b09b

Steps to reproduce the bug

  1. Just use alt tab.

Your environment

qvanphong commented 2 weeks ago

I'm facing same problem, sometime if I press Alt Tab too fast, the tab select automatically move from left to right until end of list of windows

lwouis commented 2 weeks ago

Hi,

Thank you for sharing this issue.

I can't reproduce it. I reproduced your exact inputs as well, and it doesn't get stuck.

Only idea I have is that you may have other apps on your setup which intercept events, and absorb the keyUp event. This would mean AltTab doesn't see them, thus never goes away.

Do you use BTT, Karabineer, external keyboards, logitech things, etc?

Thank you 🙇

@qvanphong what you describe sounds more like https://github.com/lwouis/alt-tab-macos/issues/3117

milosoria commented 2 weeks ago

I'm facing the same problem ever since i updated to sonoma.

pawelkontek commented 2 weeks ago

Do you use BTT, Karabineer, external keyboards, logitech things, etc?

I use Karabiner, but I was also able to reproduce this bug with Karabiner completely turned off. I use BTT 🤡 No external keyboards or Logitech (as of recording this bug) – it is possible that the Apple keyboard and trackpad were connected via Bluetooth but not active.

Only idea I have is that you may have other apps on your setup which intercept events, and absorb the keyUp event

Isn't karabiner elements showing what the computer (?) is recording?

lwouis commented 2 weeks ago

Karabiner and BTT both listen to keyboard events, and do things with it. In some cases, they may absorb the event.

For instance, if you set Karabiner to remap E to L, when you press E, it will create keyUp event for the letter E. Karabiner will absorb it, and re-emit a new event for the letter L. At least I believe they do something like this. I know for a fact that these apps can absorb events, then AltTab doesn't receive them. Many users have shared issues with AltTab that were actually due to their setup.

Could you please test with BTT and Karabiner not running, and no external keyboard? I think that should confirm if they were the cause, which is the most likely explanation.

Thank you 🙇

qvanphong commented 2 weeks ago

Do you use BTT, Karabineer, external keyboards, logitech things, etc?

Hi @lwouis , I'm not using any other external device. I'm not remember exactly when this happen, maybe after update Sonoma?

My issue is same as https://github.com/lwouis/alt-tab-macos/issues/3117

nasedil commented 1 week ago

I had the problem when updated to Sonoma. Then I disabled the blue capslock indicator popup in macos and now it seems working normal as before.

scriptogre commented 1 week ago

I had the exact same issue for months, but have not found anyone else facing it. Finally there's someone else. I am also using Karabiner, but I can confirm that this also happens with Karabiner stopped.

ctrl-cheeb-del commented 6 days ago

I have also experienced this issue on a brand new macbook also on Sonoma

ILIAink commented 6 days ago

I unfortunately don't have a solution, but just bumping this since I am facing the same issue.

Edit: If anyone just wants to make it work again, I suggest downgrading to version 6.63.0. This fixed the issue for me.

pawelkontek commented 4 days ago

@ILIAink I downgraded to 6.63.0. Unfortunately, it didn't fix the issue for me.

aoli-al commented 3 days ago

I also had this issue for a while. After some debugging, I noticed that the bug went away after I disabled Chrome's input monitoring permission.

image
lwouis commented 3 days ago

Thank you @aoli-al Anyone else gets the issue to go away by removing Chrome's Input Monitoring permissions? If yes, that would indicate that it was Chrome stealing inputs in some cases.

Yazi27 commented 2 days ago

No, I use Brave and it is not doing any input monitoring, this issue is really annoying I find myself constantly switching between Brave and VSC, I may have to find an alternative since it seems they are sleeping on this issue

multi-io commented 1 day ago

This happens constantly for me, to the point where AltTab becomes unusable.

AfzalivE commented 1 day ago

For me, disabling Karabiner's 3 input monitoring applications fixed it, re-enabling them still keeps the fix. Didn't have any other input monitoring apps enabled.

pawelkontek commented 22 hours ago

The bug still persists for me, even after disabling monitoring apps.

I am going to disable alt-tab and use macOS regular switcher, and see if it also gets stuck.

https://github.com/user-attachments/assets/516746d3-19b0-44a2-93ad-33dcc45ebed0

albionselimaj commented 20 hours ago

This is happening when the mouse cursor is positioned over the AltTab popup. Hiding window thumbnails in AltTab Appearance settings helps with this as it reduces the chances of the cursor being over the popup area.

multi-io commented 15 hours ago

This happens constantly for me, to the point where AltTab becomes unusable.

Update: I had Karabiner Elements running, wasn't really using it anymore. Disabled it and restarted, and it looks like the problem is gone. I still have Rectangle with a whole bunch of keyboard mappings running, and this would be much harder to replace or stop using, but so far it doesn't seem to interfere with AltTab. I will report back if the issue reappears.

ctrl-cheeb-del commented 14 hours ago

just wanted to say, I was experiencing this issue but took @ILIAink suggestion of downgrading to 6.63.0 seemed to fix it for me

Yazi27 commented 11 hours ago

I don't have Karabiner, the issue does arise when my mouse is somewhere around where the windows appear as @albionselimaj mentioned, it would be nice to add a feature to disable entirely disable cursor as an easy fix, or maybe disable it when its not moving?

Would be nice if a dev answers