subsurfaces: guard node's surface

This commit is contained in:
vaxerski 2023-04-07 12:36:21 +01:00
parent dfb78e0593
commit c9f7afbf78

View file

@ -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;