From 788a8f7c134a34085d683e44a328e344be6b21f3 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Mon, 20 Mar 2023 15:00:58 +0000 Subject: internal: wrap wlr surfaces (#1822) --- src/helpers/SubsurfaceTree.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/helpers/SubsurfaceTree.hpp') diff --git a/src/helpers/SubsurfaceTree.hpp b/src/helpers/SubsurfaceTree.hpp index 36105d2c..7a0968fd 100644 --- a/src/helpers/SubsurfaceTree.hpp +++ b/src/helpers/SubsurfaceTree.hpp @@ -2,6 +2,7 @@ #include "../defines.hpp" #include +#include "WLSurface.hpp" struct SSubsurface; class CWindow; @@ -9,7 +10,8 @@ class CWindow; typedef void (*applyGlobalOffsetFn)(void*, int*, int*); struct SSurfaceTreeNode { - wlr_surface* pSurface = nullptr; + CWLSurface* pSurface = nullptr; // actual surface + CWLSurface pInternalSurface; // not present for head nodes to not dupe wlr_surface ownership DYNLISTENER(newSubsurface); DYNLISTENER(commit); -- cgit v1.2.3