mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue