Fix initial window position and size for hidden windows on X11
Change windows to start closed by default
Fix random freezes when setting the window position on X11