Fixed hangups when main window was moved (Windows, GUI).