summaryrefslogtreecommitdiff
path: root/src/protocols/XDGOutput.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-22 18:44:25 +0100
committerVaxry <vaxry@vaxry.net>2024-04-22 18:44:25 +0100
commit012a2802e00a7b34e47c8c1098dc093031044ce9 (patch)
treea72083d065f243a67dabbfaa704f026d501ee655 /src/protocols/XDGOutput.cpp
parent741c75d907916d760163f910e65186d410e27874 (diff)
Protocols: implement protoLog
Diffstat (limited to 'src/protocols/XDGOutput.cpp')
-rw-r--r--src/protocols/XDGOutput.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocols/XDGOutput.cpp b/src/protocols/XDGOutput.cpp
index 551d9d90..d472df92 100644
--- a/src/protocols/XDGOutput.cpp
+++ b/src/protocols/XDGOutput.cpp
@@ -10,6 +10,8 @@
//
+#define LOGM PROTO::xdgOutput->protoLog
+
void CXDGOutputProtocol::onManagerResourceDestroy(wl_resource* res) {
std::erase_if(m_vManagerResources, [&](const auto& other) { return other->resource() == res; });
}
@@ -22,7 +24,7 @@ void CXDGOutputProtocol::bindManager(wl_client* client, void* data, uint32_t ver
const auto RESOURCE = m_vManagerResources.emplace_back(std::make_unique<CZxdgOutputManagerV1>(client, ver, id)).get();
if (!RESOURCE->resource()) {
- Debug::log(LOG, "Couldn't bind XDGOutputMgr");
+ LOGM(LOG, "Couldn't bind XDGOutputMgr");
wl_client_post_no_memory(client);
return;
}