diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-22 18:44:25 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-22 18:44:25 +0100 |
| commit | 012a2802e00a7b34e47c8c1098dc093031044ce9 (patch) | |
| tree | a72083d065f243a67dabbfaa704f026d501ee655 /src/protocols/CursorShape.cpp | |
| parent | 741c75d907916d760163f910e65186d410e27874 (diff) | |
Protocols: implement protoLog
Diffstat (limited to 'src/protocols/CursorShape.cpp')
| -rw-r--r-- | src/protocols/CursorShape.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocols/CursorShape.cpp b/src/protocols/CursorShape.cpp index e04cccb4..fb26d7a2 100644 --- a/src/protocols/CursorShape.cpp +++ b/src/protocols/CursorShape.cpp @@ -1,6 +1,8 @@ #include "CursorShape.hpp" #include <algorithm> +#define LOGM PROTO::cursorShape->protoLog + // clang-format off constexpr const char* SHAPE_NAMES[] = { "invalid", @@ -72,6 +74,7 @@ void CCursorShapeProtocol::onGetTabletToolV2(CWpCursorShapeManagerV1* pMgr, uint void CCursorShapeProtocol::createCursorShapeDevice(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* resource) { if (m_mDevices.contains(resource)) { + LOGM(ERR, "CursorShape device already exists for {:x}", (uintptr_t)resource); wl_resource_post_error(resource, 0, "Device already exists"); return; } |
