diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp index 43ff3be7..3d0ef32a 100644 --- a/src/helpers/SubsurfaceTree.cpp +++ b/src/helpers/SubsurfaceTree.cpp @@ -3,6 +3,9 @@ #include "../Compositor.hpp" void addSurfaceGlobalOffset(SSurfaceTreeNode* node, int* lx, int* ly) { + if (!node->pSurface || !node->pSurface->exists()) + return; + *lx += node->pSurface->wlr()->current.dx; *ly += node->pSurface->wlr()->current.dy;