From 211353dc34b8f0fa17fc1e4d1d5f04d6fe1910e5 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 8 Jun 2024 12:03:47 +0200 Subject: core: verify surface roles on creation of objects --- src/protocols/XDGShell.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/protocols/XDGShell.hpp') 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 resource_, SP owner_, SP surface_); ~CXDGSurfaceResource(); static SP fromResource(wl_resource*); + virtual eSurfaceRole role(); + bool good(); WP owner; -- cgit v1.2.3