lwouis / alt-tab-macos

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

Notion is not listed when I use AltTab #1570

Closed ifsheldon closed 2 years ago

ifsheldon commented 2 years ago

Describe the bug (I'm not sure if it's a bug. I searched the issue list and found no one has report this) When I am running notion with a window or without a window, AltTab does not give me a preview of the window or blank preview. I don't know if this is an app-specific problem because every app works well with AltTab so far except Notion.

Screenshots / video

Add screenshots to help explain your problem. You can also use Loom to easily record your screen to show the bug in action. That is really helpful!

image image

Steps to reproduce the bug

  1. Run Notion and open a window of it
  2. Use AltTab

Env:

If anyone can reproduce this problem with a stable macOS on M1 Mac, it will be great.

lwouis commented 2 years ago

I downloaded Notion, created an account, open 2 windows: everything is shown properly in AltTab.

It seems like it could be either linked to their Apple Silicon app, or the fact that you're on the macOS beta.

Could you please contact Notion customer support about this issue? It's probably on their side to fix.

ifsheldon commented 2 years ago

@lwouis Thanks a lot! I will try to find one Mac with stable macOS and get back to this issue. Besides, can you try Skype as well if you have a Microsoft account? As you can see from my screen shots, Skype is running without a window and is not shown with an empty preview in AltTab. Skype is intel-only now so my Skype is running on Rosetta2 on my Mac.

lwouis commented 2 years ago

@ifsheldon actually in your Dock you have the following open apps, which don't show anything in AltTab:

Can you try these 2 approaches to see what happens?

AltTab uses very different mechanisms in the 2 cases. I'm curious if Apple broke a private API or something in macOS 12.4 Beta. They already broke one important one from the 12.2 beta onward (#1324)

ifsheldon commented 2 years ago

After macOS was auto-updated to macOS 12.4RC, the problem is sort of gone and I cannot reproduce it exactly. But I found another related small issue. Here is how I reproduce this issue:

  1. Enable "Start at login" of AltTab
  2. Have some apps opened with some windows and have some apps running without windows. Now everything goes well with AltTab.
  3. Restart my Mac with the option: re-open the windows when login (this is my English translation, but I think you know what option it is). With this option, the the context of opened windows is saved and then restored I guess.
  4. After the restart, some restored windows pop up and the apps are restored to be running even if they didn't have windows before the restart.
  5. The apps that have restored windows will show in AltTab correctly, but the ones that run without windows before the restart will not show in AltTab.
  6. Now if I want to have these ones that do not show in AltTab to show up, I need to exit these apps and then run them again.
lwouis commented 2 years ago

Please see discussion from here: https://github.com/lwouis/alt-tab-macos/issues/447#issuecomment-1112805183 if you're interested in the issue with detecting apps from login.