mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:09:49 +01:00
guard surface in addsurfaceglobaloffset
This commit is contained in:
parent
da10022d84
commit
5a146e9d90
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue