Fix wlr_scene_node_lower_to_bottom

Before this commit, it would keep the node at the top or make it second-
topmost.
This commit is contained in:
tiosgz 2021-12-04 22:12:58 +00:00
parent efeb8346cf
commit ca1af8119c
1 changed files with 1 additions and 1 deletions

View File

@ -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) { void wlr_scene_node_lower_to_bottom(struct wlr_scene_node *node) {
struct wlr_scene_node *current_bottom = wl_container_of( 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) { if (node == current_bottom) {
return; return;
} }