aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiosgz <alamica@protonmail.com>2021-12-04 22:12:58 +0000
committertiosgz <alamica@protonmail.com>2021-12-04 22:22:56 +0000
commitca1af8119c8f441b6ab95eb2210b65c39d21cf18 (patch)
tree719006556d0285f0ed30b1a6c82075eb61d17752
parentefeb8346cfc6a18d2d9341460033883e4f89c28a (diff)
Fix wlr_scene_node_lower_to_bottom
Before this commit, it would keep the node at the top or make it second- topmost.
-rw-r--r--types/scene/wlr_scene.c2
1 files changed, 1 insertions, 1 deletions
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;
}