diff options
author | tiosgz <[email protected]> | 2021-12-04 22:12:58 +0000 |
---|---|---|
committer | tiosgz <[email protected]> | 2021-12-04 22:22:56 +0000 |
commit | cd711ff930198c88598876e39fe07f33b8675837 (patch) | |
tree | 31d7ba80bd7e63958b05938568a8c328ee233ec0 | |
parent | 7970772290d21575fa00dbe50556914d0723bd4e (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-- | wlr_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wlr_scene.c b/wlr_scene.c index d1236fe..b1db7b8 100644 --- a/wlr_scene.c +++ b/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; } |