Steps to reproduce:
1. Launch Firefox
2. Launch this script
Code: Select all
#w::
WinRestore, ahk_exe C:\Program Files\Mozilla Firefox\firefox.exe
return
4. Hit WIN+W to restore Firefox
RESULT:
The Firefox window is restored and activated but redrawn only partially (including parts of the content and "chrome") until some action is performed by the user such as switching to a different tab. Very annoying.
Whereas, when I use ALT-TAB to activate Firefox (after minimizing it), the window is fully redrawn as expected.
Replacing WinRestore by WinActivate in the above script yields the same result.
OS: Windows 10 21H1
AHK version: 1.1.33.10 (latest)
GPU: NVIDIA latest driver 472.12