Restore original display after window resizing.

fixes #3597