subsurfaceTree: assign surfaces to a CWLSurface

fixes #4872
This commit is contained in:
Vaxry 2024-02-28 17:53:17 +00:00
parent 29cdd7de1f
commit 51b1b17fcb
2 changed files with 2 additions and 0 deletions

View file

@ -145,6 +145,7 @@ void Events::listener_newSubsurfaceNode(void* owner, void* data) {
const auto PSUBSURFACE = (wlr_subsurface*)data;
const auto PNEWSUBSURFACE = &pNode->childSubsurfaces.emplace_back();
PNEWSUBSURFACE->surface.assign(PSUBSURFACE->surface);
Debug::log(LOG, "Added a new subsurface {:x}", (uintptr_t)PSUBSURFACE);

View file

@ -36,6 +36,7 @@ struct SSurfaceTreeNode {
struct SSubsurface {
wlr_subsurface* pSubsurface = nullptr;
CWLSurface surface;
SSurfaceTreeNode* pParent = nullptr;
SSurfaceTreeNode* pChild = nullptr;