mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 14:11:59 -07:00
subsurfaces: guard node's surface
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
#include "../Compositor.hpp"
|
#include "../Compositor.hpp"
|
||||||
|
|
||||||
void addSurfaceGlobalOffset(SSurfaceTreeNode* node, int* lx, int* ly) {
|
void addSurfaceGlobalOffset(SSurfaceTreeNode* node, int* lx, int* ly) {
|
||||||
|
if (!node->pSurface || !node->pSurface->exists())
|
||||||
|
return;
|
||||||
|
|
||||||
*lx += node->pSurface->wlr()->current.dx;
|
*lx += node->pSurface->wlr()->current.dx;
|
||||||
*ly += node->pSurface->wlr()->current.dy;
|
*ly += node->pSurface->wlr()->current.dy;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user