fix: fix layer always null in xytonode

This commit is contained in:
DreamMaoMao 2026-05-21 18:01:36 +08:00
parent b2bae99550
commit 483bd724b3
3 changed files with 3 additions and 3 deletions

View file

@ -131,8 +131,8 @@ void xytonode(double x, double y, struct wlr_surface **psurface, Client **pc,
for (pnode = node; pnode && !c; pnode = &pnode->parent->node)
c = pnode->data;
if (c && c->type == LayerShell) {
l = (LayerSurface *)c;
c = NULL;
l = pnode->data;
}
}