Adds display-testing functionallity to request handler

This commit is contained in:
Johannes Wendel
2020-04-06 15:47:25 +02:00
parent b10fff3465
commit a3bbc3ecf1

View File

@@ -230,6 +230,12 @@ boost::optional<Poco::JSON::Object> OutputRequestHandler::parseDisplay(const std
return response;
}
if (display_name == "test")
{
this->output_driver->rotate_displays();
return response;
}
auto opt_display = this->output_driver->get_display(display_name);
if(!opt_display)