Fix initial window position, avoid blocking messages