fix: sloppyfocus not work when move cursor slowly

This commit is contained in:
DreamMaoMao
2025-11-27 22:40:41 +08:00
parent e2ee985b8f
commit 2f9cabe4b2

View File

@@ -115,6 +115,10 @@ void xytonode(double x, double y, struct wlr_surface **psurface, Client **pc,
surface = wlr_scene_surface_try_from_buffer(
wlr_scene_buffer_from_node(node))
->surface;
else if (node->type == WLR_SCENE_NODE_RECT) {
surface = NULL;
break;
}
/* start from the topmost layer,
find a sureface that can be focused by pointer,