lwouis / alt-tab-macos

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

Does not detect Little Snitch's open windows #3591

Closed starptr closed 1 month ago

starptr commented 1 month ago

Describe the bug

I'm using the Little Snitch and Little Snitch Network Monitor applications. For both applications, instances of its windows do not appear in alt-tab.

Screenshots / video

See below:

CleanShot 2024-09-07 at 15 54 00@2x

Steps to reproduce the bug

  1. Start the Little Snitch Network Monitor and Little Snitch applications
  2. Open alt-tab

Your environment

lwouis commented 1 month ago

Hi,

I installed Little Snitch and tested things out.

I can confirm that this issue comes from Little Snitch. It has non-standard window management. Processes like the Network Manager are spawn only when you display the window. I think it's good to avoid using resources on the machine unless the user is activitely looking at the window. However, they must have made mistake implementing this.

When the window is open, the app declares having no window. Specifically, when AltTab does its call to the macOS Accessibility API, it returns nil. Nothing we can do about this.

Could you please open an issue with Little Snitch support, so they can investigate and fix this issue? Feel free to link to this ticket here with my analysis. I'll be glad to help them if they have questions.

Thank you 🙇

lwouis commented 1 month ago

Oh, I forgot that this has been discussed before!

Here is an explanation on what is going on: https://github.com/lwouis/alt-tab-macos/issues/3535#issuecomment-2268829773

starptr commented 1 month ago

Thanks for the thorough response! Sorry for the dupe issue; somehow missed that one. I sent them a message; let's see how things go.

starptr commented 1 month ago

This isn't too relevant to alt-tab, but very helpful info for Little Snitch users for posterity: there is an option in the settings to expose the windows to other applications including alt-tab! This worked for me.

CleanShot 2024-09-09 at 16 39 54@2x