fixed bug where window can be manipulated while maximized