From 87173bd09daa4b56adabcfc72a29aec957cb8a13 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 21 Apr 2024 21:20:48 +0100 Subject: protocols: fix for hyprwayland-scanner update --- src/protocols/CursorShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocols/CursorShape.cpp') diff --git a/src/protocols/CursorShape.cpp b/src/protocols/CursorShape.cpp index e94dda60..e04cccb4 100644 --- a/src/protocols/CursorShape.cpp +++ b/src/protocols/CursorShape.cpp @@ -86,7 +86,7 @@ void CCursorShapeProtocol::createCursorShapeDevice(CWpCursorShapeManagerV1* pMgr void CCursorShapeProtocol::onSetShape(CWpCursorShapeDeviceV1* pMgr, uint32_t serial, wpCursorShapeDeviceV1Shape shape) { if ((uint32_t)shape == 0 || (uint32_t)shape > sizeof(SHAPE_NAMES)) { - wl_resource_post_error(pMgr->resource(), ERROR_INVALID_SHAPE, "The shape is invalid"); + wl_resource_post_error(pMgr->resource(), WP_CURSOR_SHAPE_DEVICE_V1_ERROR_INVALID_SHAPE, "The shape is invalid"); return; } -- cgit v1.2.3