2024-08-15 09:06:06 +07:00
|
|
|
From ffec4e61168224d5b57241ae863a6970ce969a47 Mon Sep 17 00:00:00 2001
|
2024-08-15 04:59:18 +07:00
|
|
|
From: chayleaf <chayleaf-git@pavluk.org>
|
|
|
|
Date: Wed, 14 Aug 2024 07:32:11 +0700
|
2024-08-15 09:06:06 +07:00
|
|
|
Subject: [PATCH 2/4] mobile: reverse layer order
|
2024-08-15 04:59:18 +07:00
|
|
|
|
|
|
|
This makes exclusive anchored layers that were added first be first
|
|
|
|
---
|
2024-08-15 09:06:06 +07:00
|
|
|
sway/desktop/layer_shell.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2024-08-15 04:59:18 +07:00
|
|
|
|
|
|
|
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
|
2024-08-15 09:06:06 +07:00
|
|
|
index 8c6cedfe..41a638ee 100644
|
2024-08-15 04:59:18 +07:00
|
|
|
--- a/sway/desktop/layer_shell.c
|
|
|
|
+++ b/sway/desktop/layer_shell.c
|
|
|
|
@@ -129,7 +129,7 @@ static void arrange_layer(struct sway_output *output, struct wl_list *list,
|
|
|
|
struct wlr_box full_area = { 0 };
|
|
|
|
wlr_output_effective_resolution(output->wlr_output,
|
|
|
|
&full_area.width, &full_area.height);
|
|
|
|
- wl_list_for_each(sway_layer, list, link) {
|
|
|
|
+ wl_list_for_each_reverse(sway_layer, list, link) {
|
|
|
|
struct wlr_layer_surface_v1 *layer = sway_layer->layer_surface;
|
|
|
|
struct wlr_layer_surface_v1_state *state = &layer->current;
|
|
|
|
if (exclusive != (state->exclusive_zone > 0)) {
|
|
|
|
--
|
2024-08-15 09:06:06 +07:00
|
|
|
2.45.2
|
2024-08-15 04:59:18 +07:00
|
|
|
|