diff options
author | tiosgz <alamica@protonmail.com> | 2021-12-04 22:12:58 +0000 |
---|---|---|
committer | tiosgz <alamica@protonmail.com> | 2021-12-04 22:22:56 +0000 |
commit | ca1af8119c8f441b6ab95eb2210b65c39d21cf18 (patch) | |
tree | 719006556d0285f0ed30b1a6c82075eb61d17752 | |
parent | efeb8346cfc6a18d2d9341460033883e4f89c28a (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.c | 2 |
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; } |