summaryrefslogtreecommitdiff
path: root/src/protocols/XDGShell.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/XDGShell.hpp')
-rw-r--r--src/protocols/XDGShell.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/protocols/XDGShell.hpp b/src/protocols/XDGShell.hpp
index fe2517a2..d60db86a 100644
--- a/src/protocols/XDGShell.hpp
+++ b/src/protocols/XDGShell.hpp
@@ -9,6 +9,7 @@
#include "../helpers/Vector2D.hpp"
#include "../helpers/Box.hpp"
#include "../helpers/signal/Signal.hpp"
+#include "types/SurfaceRole.hpp"
class CXDGWMBase;
class CXDGPositionerResource;
@@ -137,13 +138,15 @@ class CXDGToplevelResource {
void applyState();
};
-class CXDGSurfaceResource {
+class CXDGSurfaceResource : public ISurfaceRole {
public:
CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBase> owner_, SP<CWLSurfaceResource> surface_);
~CXDGSurfaceResource();
static SP<CXDGSurfaceResource> fromResource(wl_resource*);
+ virtual eSurfaceRole role();
+
bool good();
WP<CXDGWMBase> owner;