From a8e0f99e4baf9c6ff56c2d6167ddbf5ba991d143 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Sun, 6 Nov 2022 11:49:51 +0100 Subject: [PATCH] shell: Fix layer_shell --- src/shell/workspace.rs | 2 +- src/wayland/handlers/compositor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/workspace.rs b/src/shell/workspace.rs index 00c77374..8cc19c2c 100644 --- a/src/shell/workspace.rs +++ b/src/shell/workspace.rs @@ -437,7 +437,7 @@ impl Workspace { // overlay and top layer surfaces let lower = { - let (upper, lower): (Vec<&LayerSurface>, Vec<&LayerSurface>) = layer_map + let (lower, upper): (Vec<&LayerSurface>, Vec<&LayerSurface>) = layer_map .layers() .rev() .partition(|s| matches!(s.layer(), Layer::Background | Layer::Bottom)); diff --git a/src/wayland/handlers/compositor.rs b/src/wayland/handlers/compositor.rs index 77db7e30..9804e78e 100644 --- a/src/wayland/handlers/compositor.rs +++ b/src/wayland/handlers/compositor.rs @@ -100,7 +100,7 @@ impl State { if !initial_configure_sent { // compute initial dimensions by mapping Shell::map_layer(self, &surface); - // this will also send a configure + surface.layer_surface().send_configure(); } initial_configure_sent }