Update 1 - Fix a bug

The isMaximized test did not use
minimized state of window to get
a correct result. This is fixed.