Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deminimizing windows sometimes leads to a window flicker #3561

Closed
lawand opened this issue Aug 22, 2024 · 2 comments
Closed

Deminimizing windows sometimes leads to a window flicker #3561

lawand opened this issue Aug 22, 2024 · 2 comments
Labels
bug Something isn't working unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue

Comments

@lawand
Copy link

lawand commented Aug 22, 2024

Describe the bug

When a window is minimized, selecting it with alttab to unminimze sometimes leads to the window showing up then hiding then the unminimize animation plays. This doesn't happen when unminimizing with the Dock so it's probably not a macOS bug.

Screenshots / video

Screen.Recording.2024-08-22.at.14.07.09.2.mp4

This recording shows trying to minimize and unminimze the calculator app many times. Some times using alttab and sometimes using the dock. I noticed that the bug happens only when finder is first focused (by clicking on the desktop). I tried focusing the finder then unminimizing the calculator using the Dock and the bug didn't happen.

Steps to reproduce the bug

  1. Open the calculator app
  2. minimizing it using the yellow button
  3. Focus the finder app by clicking on the desktop
  4. unminimize the calculator using alttab

Your environment

  • AltTab version: 6.72.0
  • macOS version: 14.5
@lawand lawand added the bug Something isn't working label Aug 22, 2024
@lwouis
Copy link
Owner

lwouis commented Aug 22, 2024

The flicker happens at around 0:19, correct?

I wasn't able to reproduce on my system. I suspect it's a macOS bug. It could also be an issue with the way AltTab focuses windows.

I'm afraid there is nothing we can do though. We use a pretty intricate implementation to focus today. It uses private API/SPIs. There is no known better way to do it, so are a bit stuck with it. It works 99.99% of cases. There have been a few limitations.

More info here

Thank you 🙇

@lwouis lwouis closed this as completed Aug 22, 2024
@lwouis lwouis added unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue labels Aug 22, 2024
@lawand
Copy link
Author

lawand commented Sep 10, 2024

Does this mean that it's possible to fix this issue for windows that are on the same space by making a different API call than the one for windows on other spaces? If so, do you think it's worth it to check which space the window is on then deciding which API to call? I think this would fix this bug since the visual flicker either won't happen or won't be quick enough to be seen for windows on other spaces, so this issue effectively is only for windows on the same space if I understand correctly. I would appreciate your opinion. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unactionable Further action is not possible due to lack of information or support unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants