Fix offscreen Qt window: viewport and transfer window