mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
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:
parent
efeb8346cf
commit
ca1af8119c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user