Fix initial resize of the main window in multi monitor configuration