summaryrefslogtreecommitdiff
path: root/src/protocols/LayerShell.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-06-08 12:03:47 +0200
committerVaxry <vaxry@vaxry.net>2024-06-08 12:03:47 +0200
commit211353dc34b8f0fa17fc1e4d1d5f04d6fe1910e5 (patch)
treed0665d48481c62450c0c97da3bfaea95670885f4 /src/protocols/LayerShell.hpp
parent10e02076b183f508ef72198366d53902fe0d9098 (diff)
core: verify surface roles on creation of objects
Diffstat (limited to 'src/protocols/LayerShell.hpp')
-rw-r--r--src/protocols/LayerShell.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/protocols/LayerShell.hpp b/src/protocols/LayerShell.hpp
index f348e86b..7fa14447 100644
--- a/src/protocols/LayerShell.hpp
+++ b/src/protocols/LayerShell.hpp
@@ -8,18 +8,20 @@
#include "wlr-layer-shell-unstable-v1.hpp"
#include "../helpers/Vector2D.hpp"
#include "../helpers/signal/Signal.hpp"
+#include "types/SurfaceRole.hpp"
class CMonitor;
class CWLSurfaceResource;
-class CLayerShellResource {
+class CLayerShellResource : public ISurfaceRole {
public:
CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<CWLSurfaceResource> surf_, std::string namespace_, CMonitor* pMonitor, zwlrLayerShellV1Layer layer);
~CLayerShellResource();
- bool good();
- void configure(const Vector2D& size);
- void sendClosed();
+ bool good();
+ void configure(const Vector2D& size);
+ void sendClosed();
+ virtual eSurfaceRole role();
enum eCommittedState {
STATE_SIZE = (1 << 0),