protocols: minor style improvements to new impls

This commit is contained in:
Vaxry
2024-04-21 19:29:45 +01:00
parent 75c87bde3c
commit 55f1f3fedf
7 changed files with 41 additions and 31 deletions

View File

@@ -26,6 +26,7 @@ void CTearingControlProtocol::onGetController(wl_client* client, wl_resource* re
m_vTearingControllers.emplace_back(std::make_unique<CTearingControl>(std::make_shared<CWpTearingControlV1>(client, wl_resource_get_version(resource), id), surf)).get();
if (!CONTROLLER->good()) {
wl_resource_post_no_memory(resource);
m_vTearingControllers.pop_back();
return;
}