revert to 76dff7e56c
fixed bug where window can be manipulated while maximized
Merge pull request #16 from vheuken/master

Merging back