From 00423bb738d568f4903412fdabdf53e2c63fde7c Mon Sep 17 00:00:00 2001 From: jmanc3 Date: Tue, 2 Sep 2025 04:49:24 -0500 Subject: plugins: expose csd functionality (#11551) --- src/protocols/ServerDecorationKDE.hpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/protocols/ServerDecorationKDE.hpp') diff --git a/src/protocols/ServerDecorationKDE.hpp b/src/protocols/ServerDecorationKDE.hpp index 5dc93f50..aa350093 100644 --- a/src/protocols/ServerDecorationKDE.hpp +++ b/src/protocols/ServerDecorationKDE.hpp @@ -11,9 +11,18 @@ class CServerDecorationKDE { public: CServerDecorationKDE(SP resource_, SP surf); - bool good(); + SP m_surf; + + uint32_t mostRecentlySent = 0; + uint32_t mostRecentlyRequested = 0; + + bool good(); private: + uint32_t kdeDefaultModeCSD(); + uint32_t kdeModeOnRequestCSD(uint32_t modeRequestedByClient); + uint32_t kdeModeOnReleaseCSD(); + SP m_resource; }; @@ -24,10 +33,12 @@ class CServerDecorationKDEProtocol : public IWaylandProtocol { virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id); private: - void onManagerResourceDestroy(wl_resource* res); - void destroyResource(CServerDecorationKDE* deco); + uint32_t kdeDefaultManagerModeCSD(); + + void onManagerResourceDestroy(wl_resource* res); + void destroyResource(CServerDecorationKDE* deco); - void createDecoration(COrgKdeKwinServerDecorationManager* pMgr, uint32_t id, wl_resource* surf); + void createDecoration(COrgKdeKwinServerDecorationManager* pMgr, uint32_t id, wl_resource* surf); // std::vector> m_managers; -- cgit v1.2.3