Removed unnecessary call to sf::Window::setActive().
Bug corrected: Increment counter made too late.