Resize x11 window first.