mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 20:51:58 -07:00
surfacetree: Revert "subsurfaceTree: assign surfaces to a CWLSurface"
This reverts commit 51b1b17fcb
.
Crash issues, fixes #4874
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user