Fixed bug where the "Do you want to save the changes" dialog appeared in
the top left corner of the screen when the window was minimized