opt: not search disable node in xytonode

This commit is contained in:
DreamMaoMao
2025-12-27 09:54:29 +08:00
parent 14f15ec997
commit 526a09c480

View File

@@ -93,6 +93,9 @@ void xytonode(double x, double y, struct wlr_surface **psurface, Client **pc,
if (!(node = wlr_scene_node_at(&layers[layer]->node, x, y, nx, ny)))
continue;
if (!node->enabled)
continue;
if (node->type == WLR_SCENE_NODE_BUFFER)
surface = wlr_scene_surface_try_from_buffer(
wlr_scene_buffer_from_node(node))