diff --git a/src/animation/client.h b/src/animation/client.h index 0f8948b9..318d34cf 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -543,8 +543,8 @@ void init_fadeout_client(Client *c) { wlr_scene_node_set_enabled(&c->scene->node, true); client_set_border_color(c, bordercolor); - fadeout_client->scene = - wlr_scene_tree_snapshot(&c->scene->node, layers[LyrFadeOut]); + fadeout_client->scene = wlr_scene_tree_snapshot( + &c->scene->node, c->mon->layers_scene_tree[LyrFadeOut]); wlr_scene_node_set_enabled(&c->scene->node, false); if (!fadeout_client->scene) { diff --git a/src/animation/layer.h b/src/animation/layer.h index def79954..b694aa65 100644 --- a/src/animation/layer.h +++ b/src/animation/layer.h @@ -345,8 +345,8 @@ void init_fadeout_layers(LayerSurface *l) { get_layer_area_bound(l, &usable_area); wlr_scene_node_set_enabled(&l->scene->node, true); - fadeout_layer->scene = - wlr_scene_tree_snapshot(&l->scene->node, layers[LyrFadeOut]); + fadeout_layer->scene = wlr_scene_tree_snapshot( + &l->scene->node, l->mon->layers_scene_tree[LyrFadeOut]); wlr_scene_node_set_enabled(&l->scene->node, false); if (!fadeout_layer->scene) {