aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootston/layer_shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/layer_shell.c b/rootston/layer_shell.c
index 4ce4c293..39054079 100644
--- a/rootston/layer_shell.c
+++ b/rootston/layer_shell.c
@@ -110,7 +110,7 @@ static void arrange_layer(struct wlr_output *output,
struct wlr_box full_area = { 0 };
wlr_output_effective_resolution(output,
&full_area.width, &full_area.height);
- wl_list_for_each(roots_surface, list, link) {
+ wl_list_for_each_reverse(roots_surface, list, link) {
struct wlr_layer_surface *layer = roots_surface->layer_surface;
struct wlr_layer_surface_state *state = &layer->current;
if (exclusive != (state->exclusive_zone > 0)) {