You could check whether $window(windowname).y and $window(windowname).dy are the same and that $window(windowname).x and $window(windowname).dx are the same. If they are then it's a desktop window.


Spelling mistakes, grammatical errors, and stupid comments are intentional.