Refactored fullscreen logic for sfml