lwouis / alt-tab-macos

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

Alt-tab window preview don't stop overlapping other windows when you click with mouse. #3505

Open Lego4m opened 2 months ago

Lego4m commented 2 months ago

Describe the bug

Alt-tab window preview don't stop overlapping other windows when you click with mouse.

Screenshots / video

Screen Recording 2024-07-22 at 16 28 34

Steps to reproduce the bug

  1. Enable the "Preview selected window" option at "Appearance" menu.
  2. Open two windows and overlap a little of one over the other.
  3. Alt+tab until one of the windows.
  4. Click with mouse in the other window (while holding alt-tab).
  5. The window focused by the alt-tab will overlap any other window.
  6. Press alt-tab again to the bug go away.

Your environment

lwouis commented 1 month ago

Hi,

I haven't been able to reproduce this issue.

In your example, you click on Simulator which is an app, not a window. Are you able to reproduce the issue with 2 windows? For example a Finder window and a Chrome window?

Thank you 🙇

Lego4m commented 1 month ago

Oh right, with two windows the bug doesn't happen.

I did some more tests and apparently it only consistently happens with the simulator. Sometimes when I close an app and click on it icon using alt+tab the bug occurs, but I can't define a sequence of steps for this.

lwouis commented 1 month ago

Hi,

I was able to reproduce the issue with Preview. Indeed, there was missing code to remove the Preview window, if an app-with-no-window was selected. I'll release a new version of the app with a fix soon 👍

Thank you 🙇