aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2024-10-17 10:10:02 -0400
committerSimon Ser <contact@emersion.fr>2024-10-20 22:10:57 +0200
commit65779cc6edaa4988e23964abaa5a453549b7fe63 (patch)
tree2d25e9c8494c5579847c1895646d4ad5e3669bdd
parent08362d98c632d3ce064ea48a3c308c2ee35c40db (diff)
layer_shell: Restore sway 1.9 ordering
(cherry picked from commit 8363699f145fca844772643ceedcdaa7c6b90982)
-rw-r--r--sway/desktop/layer_shell.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index 62c6a511..333c09b4 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -82,14 +82,15 @@ void arrange_layers(struct sway_output *output) {
&usable_area.width, &usable_area.height);
const struct wlr_box full_area = usable_area;
- arrange_surface(output, &full_area, &usable_area, output->layers.shell_background, true);
- arrange_surface(output, &full_area, &usable_area, output->layers.shell_background, false);
- arrange_surface(output, &full_area, &usable_area, output->layers.shell_bottom, true);
- arrange_surface(output, &full_area, &usable_area, output->layers.shell_bottom, false);
- arrange_surface(output, &full_area, &usable_area, output->layers.shell_top, true);
- arrange_surface(output, &full_area, &usable_area, output->layers.shell_top, false);
arrange_surface(output, &full_area, &usable_area, output->layers.shell_overlay, true);
+ arrange_surface(output, &full_area, &usable_area, output->layers.shell_top, true);
+ arrange_surface(output, &full_area, &usable_area, output->layers.shell_bottom, true);
+ arrange_surface(output, &full_area, &usable_area, output->layers.shell_background, true);
+
arrange_surface(output, &full_area, &usable_area, output->layers.shell_overlay, false);
+ arrange_surface(output, &full_area, &usable_area, output->layers.shell_top, false);
+ arrange_surface(output, &full_area, &usable_area, output->layers.shell_bottom, false);
+ arrange_surface(output, &full_area, &usable_area, output->layers.shell_background, false);
if (!wlr_box_equal(&usable_area, &output->usable_area)) {
sway_log(SWAY_DEBUG, "Usable area changed, rearranging output");