From ca1af8119c8f441b6ab95eb2210b65c39d21cf18 Mon Sep 17 00:00:00 2001 From: tiosgz Date: Sat, 4 Dec 2021 22:12:58 +0000 Subject: [PATCH] Fix wlr_scene_node_lower_to_bottom Before this commit, it would keep the node at the top or make it second- topmost. --- types/scene/wlr_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index d1236fe0..b1db7b8f 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -483,7 +483,7 @@ void wlr_scene_node_raise_to_top(struct wlr_scene_node *node) { void wlr_scene_node_lower_to_bottom(struct wlr_scene_node *node) { struct wlr_scene_node *current_bottom = wl_container_of( - node->parent->state.children.prev, current_bottom, state.link); + node->parent->state.children.next, current_bottom, state.link); if (node == current_bottom) { return; }