mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
guard surface in addsurfaceglobaloffset
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)
|
||||||
|
return; // ? how does this happen sometimes
|
||||||
|
|
||||||
*lx += node->pSurface->sx;
|
*lx += node->pSurface->sx;
|
||||||
*ly += node->pSurface->sy;
|
*ly += node->pSurface->sy;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user