lwouis / alt-tab-macos

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

Alt-tab sporadically doesn't open or switch windows. #3406

Closed johnnymatthews closed 2 months ago

johnnymatthews commented 2 months ago

Alt-tab sporadically doesn't open or switch windows. If I encounter this, I generally have to keep rebooting my machine until it starts working again. It seems to happen most often after waking up from sleep, but this isn't consistent.

I've:

Still the app doesn't switch windows. If, however, I use spotlight to open the app twice I can get to the preferences window. The app is running, it's just not switching windows or showing any indication that it can./

Sorry, this a super weird bug and I don't see any tips on how to troubleshoot the app. Is there a way I can run the app from a terminal window and see any debug messages?

Your environment

Again, sorry there isn't much else I can think to tell you. Running the app with debug messages would be most helpful, I think.

johnnymatthews commented 2 months ago

I just restarted and AltTab wasn't working again. So I opened terminal and moved into the /Applications dir and ran open -n ./AltTab.app, and the app opened normally. Wonder if there's something special going on with running things from terminal?

lwouis commented 2 months ago

Hi,

I don't think there should be anything unique about how the app is started. open -n is extremely close to double-clicking the app icon, as far as i know.

You mention that it "doesn't switch windows". You mean that the app is running, but nothing happens when you press the shortcut? What happens if you click on the icon in the top menubar, and click on Show? Does it show?

Thank you 🙇

johnnymatthews commented 2 months ago

I don't think there should be anything unique about how the app is started. open -n is extremely close to double-clicking the app icon, as far as i know.

Yeah it seems that you're correct. I've just ran into this issue again, and opening the app from the terminal hasn't resolved this issue.

You mention that it "doesn't switch windows". You mean that the app is running, but nothing happens when you press the shortcut?

Correct.

What happens if you click on the icon in the top menubar, and click on Show? Does it show?

Yes, the menu bar shows. I can interact with the menu, open the About page, all that good stuff. But none of the keybindings I set to start AltTab seem to work. I've just set AltTab to use OPTION + TAB, but nothing happens when I press it -- even after restarting the app.

Are there any further steps I can take to debug this issue?

lwouis commented 2 months ago

Hi,

What happens when you press "Show" with the mouse?

It's most likely that you have something interfering on your setup: external keyboard, keyboard remapping software (e.g. Karabineer, BTT, Logitech driver, etc), language software, accessibility software, etc.

Is that the case?

Thank you 🙇

johnnymatthews commented 2 months ago

What happens when you press "Show" with the mouse?

I can interact with the menu just fine.

It's most likely that you have something interfering on your setup

I agree. I just can't think of what it might be. I don't have an external keyboard or alternative drivers. The only software I can think of that might interfere with things is Alfred. As a last-ditch effort, I'm gonna reformat my Macbook, install AltTab, and then slowly install all my other apps over the course of a week. Once I notice weird behaviour, I'll report back.

vsuharnikov commented 2 months ago

It works again if you rebind keys in Controls > Shortcut N. By default I have cmd+tab to switch windows. I change cmd to ctrl+shift+cmd and then again to cmd to solve the described issue.

Also I use skhd and raycast, but there is no such binding.

AltTab version: 6.68.0 macOS version: 14.5 (23F79)

johnnymatthews commented 2 months ago

So, after reformatting my machine and installing everything again, it seems to be working fine. I haven't yet installed Alfred though, so I'm thinking that might have something to do with my problems. Anyway, I'm gonna close this for now since it seems that the issue likely isn't with AltTab.