Fix blank screen on fullscreen bug (#5396)