Fixed assertion failure when minimizing a fullscreen window.
Fixed window resizing when entering and leaving fullscreen mode