mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 08:25:58 +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"
|
#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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue