summaryrefslogtreecommitdiff
path: root/src/protocols/ServerDecorationKDE.hpp
diff options
context:
space:
mode:
authorjmanc3 <jman12316@live.com>2025-09-02 04:49:24 -0500
committerGitHub <noreply@github.com>2025-09-02 11:49:24 +0200
commit00423bb738d568f4903412fdabdf53e2c63fde7c (patch)
treef78f76289ce5511abfb33b6eeb7a894241ac2bd8 /src/protocols/ServerDecorationKDE.hpp
parent8a64168a43f7d50810f428af0b34013f796ca2c8 (diff)
plugins: expose csd functionality (#11551)
Diffstat (limited to 'src/protocols/ServerDecorationKDE.hpp')
-rw-r--r--src/protocols/ServerDecorationKDE.hpp19
1 files changed, 15 insertions, 4 deletions
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<COrgKdeKwinServerDecoration> resource_, SP<CWLSurfaceResource> surf);
- bool good();
+ SP<CWLSurfaceResource> 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<COrgKdeKwinServerDecoration> 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<UP<COrgKdeKwinServerDecorationManager>> m_managers;