-
>
> If you wnt to detect minimized windows, you can use win.minned or
> win.trayminned.
>
Just to build on that point: the window visibility is different from
whether the window is min/normal/max. It can be in any combination of
visible/hidden with min/norma/max.
As suggested, first use win.minned to detect minimized windows if you
want to treat them separately from normal/maxxed windows.