now uses sfml to get relative window