Fix layout problem if window is stuck at fullscreen