From 55f1f3fedfc6dc5da7f304bdfc8296a0a056f781 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 21 Apr 2024 19:29:45 +0100 Subject: protocols: minor style improvements to new impls --- src/protocols/CursorShape.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/protocols/CursorShape.hpp') diff --git a/src/protocols/CursorShape.hpp b/src/protocols/CursorShape.hpp index f410bf5b..9a527f85 100644 --- a/src/protocols/CursorShape.hpp +++ b/src/protocols/CursorShape.hpp @@ -12,14 +12,6 @@ class CCursorShapeProtocol : public IWaylandProtocol { virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id); - void onManagerResourceDestroy(wl_resource* res); - void onDeviceResourceDestroy(wl_resource* res); - - void onGetPointer(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* pointer); - void onGetTabletToolV2(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* tablet); - - void onSetShape(CWpCursorShapeDeviceV1* pMgr, uint32_t serial, wpCursorShapeDeviceV1Shape shape); - struct SSetShapeEvent { CWpCursorShapeDeviceV1* pMgr = nullptr; wpCursorShapeDeviceV1Shape shape; @@ -31,8 +23,16 @@ class CCursorShapeProtocol : public IWaylandProtocol { } events; private: - void createCursorShapeDevice(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* resource); + void onManagerResourceDestroy(wl_resource* res); + void onDeviceResourceDestroy(wl_resource* res); + + void onGetPointer(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* pointer); + void onGetTabletToolV2(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* tablet); + + void onSetShape(CWpCursorShapeDeviceV1* pMgr, uint32_t serial, wpCursorShapeDeviceV1Shape shape); + void createCursorShapeDevice(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* resource); + // std::unordered_map> m_mDevices; std::vector> m_vManagers; }; -- cgit v1.2.3