diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-07 12:36:21 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-07 12:36:26 +0100 |
| commit | c9f7afbf782304fef1ca629a278ce8ef35fc1e3d (patch) | |
| tree | a0fe79a610d0a84edbd0dde5dfe58a47bc1ecceb /src/helpers/SubsurfaceTree.cpp | |
| parent | dfb78e059394a637e0f36242fe36d118bd1ce3e6 (diff) | |
subsurfaces: guard node's surface
Diffstat (limited to 'src/helpers/SubsurfaceTree.cpp')
| -rw-r--r-- | src/helpers/SubsurfaceTree.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
