Fix black screen on startup if no windows are already present.