diff options
Diffstat (limited to 'src/helpers/SubsurfaceTree.hpp')
| -rw-r--r-- | src/helpers/SubsurfaceTree.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/helpers/SubsurfaceTree.hpp b/src/helpers/SubsurfaceTree.hpp index 32a3013e..52f54f16 100644 --- a/src/helpers/SubsurfaceTree.hpp +++ b/src/helpers/SubsurfaceTree.hpp @@ -4,6 +4,7 @@ #include <list> struct SSubsurface; +class CWindow; typedef void (*applyGlobalOffsetFn)(void *, int *, int *); @@ -21,6 +22,7 @@ struct SSurfaceTreeNode { applyGlobalOffsetFn offsetfn; void *globalOffsetData; + CWindow* pWindowOwner = nullptr; bool operator==(const SSurfaceTreeNode& rhs) { return pSurface == rhs.pSurface; @@ -37,13 +39,15 @@ struct SSubsurface { DYNLISTENER(unmap); DYNLISTENER(destroy); + CWindow* pWindowOwner = nullptr; + bool operator==(const SSubsurface& rhs) { return pSubsurface == rhs.pSubsurface; } }; namespace SubsurfaceTree { - SSurfaceTreeNode* createTreeRoot(wlr_surface*, applyGlobalOffsetFn, void*); + SSurfaceTreeNode* createTreeRoot(wlr_surface*, applyGlobalOffsetFn, void*, CWindow* pWindow = nullptr); void destroySurfaceTree(SSurfaceTreeNode*); inline std::list<SSurfaceTreeNode> surfaceTreeNodes; |
