mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 05:31:59 -07:00
guard surface in addsurfaceglobaloffset
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
#include "../Compositor.hpp"
|
||||
|
||||
void addSurfaceGlobalOffset(SSurfaceTreeNode* node, int* lx, int* ly) {
|
||||
if (!node->pSurface)
|
||||
return; // ? how does this happen sometimes
|
||||
|
||||
*lx += node->pSurface->sx;
|
||||
*ly += node->pSurface->sy;
|
||||
|
||||
|
Reference in New Issue
Block a user