surfacetree: Revert "subsurfaceTree: assign surfaces to a CWLSurface"

This reverts commit 51b1b17fcb.

Crash issues, fixes #4874
This commit is contained in:
Vaxry 2024-02-28 19:42:04 +00:00
parent a31433c215
commit 097f561e41
2 changed files with 0 additions and 2 deletions

View file

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

View file

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