pmb6tz / windows-desktop-switcher

An AutoHotKey script for Windows that lets a user change virtual desktops by pressing CapsLock + <num>.
MIT License
1.23k stars 230 forks source link

only activate window if not minimized #45

Closed grmblfrz closed 5 years ago

grmblfrz commented 5 years ago

When I switch to a desktop with minimized windows only they should not get activated (imho). This patch checks the windows state and only activates it if not minimized.

Elijas commented 5 years ago

Thank you very much for the contribution! I've successfully replicated the bug by switching between desktops 1 & 3 and having a Paint app minimized in one of them.

I've refactored the code a bit as it was not clear to me that it was checking for the minimization of the window.