fixed window manipulation in content mode bug:
Merge pull request #9 from vheuken/master

Merging back