aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-05-21 20:44:08 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-05-21 20:44:08 -0500
commit283c043b5c8cc6f2d5b8a5e72e1a5924b2c1532e (patch)
tree15d266c68723c2f8e03be61310fb1ddbc732e0b6
parent88a8b784d08ec2e8bdbfc50f1e9adb7f7fbcce9c (diff)
chase wlroots scene-surface refactor
-rw-r--r--dwl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 84e5f2e..65cb97a 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2253,8 +2253,9 @@ xytonode(double x, double y, struct wlr_surface **psurface,
for (layer = focus_order; layer < END(focus_order); layer++) {
if ((node = wlr_scene_node_at(layers[*layer], x, y, nx, ny))) {
- if (node->type == WLR_SCENE_NODE_SURFACE)
- surface = wlr_scene_surface_from_node(node)->surface;
+ if (node->type == WLR_SCENE_NODE_BUFFER)
+ surface = wlr_scene_surface_from_buffer(
+ wlr_scene_buffer_from_node(node))->surface;
/* Walk the tree to find a node that knows the client */
for (pnode = node; pnode && !c; pnode = pnode->parent)
c = pnode->data;