diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-08 12:03:47 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-08 12:03:47 +0200 |
| commit | 211353dc34b8f0fa17fc1e4d1d5f04d6fe1910e5 (patch) | |
| tree | d0665d48481c62450c0c97da3bfaea95670885f4 /src/protocols/XDGShell.hpp | |
| parent | 10e02076b183f508ef72198366d53902fe0d9098 (diff) | |
core: verify surface roles on creation of objects
Diffstat (limited to 'src/protocols/XDGShell.hpp')
| -rw-r--r-- | src/protocols/XDGShell.hpp | 5 |
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; |
