More window manipulation on X11 and Win32