From 06d4abf712b689229706842a6025736766af5555 Mon Sep 17 00:00:00 2001 From: alvv-z <77728785+alvv-z@users.noreply.github.com> Date: Sun, 23 Aug 2026 00:45:29 +0200 Subject: [PATCH] move to bottom instead of background --- src/app/controller.rs | 4 ++-- src/platform/surfaces.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/controller.rs b/src/app/controller.rs index 0caf9de..463e121 100644 --- a/src/app/controller.rs +++ b/src/app/controller.rs @@ -1339,7 +1339,7 @@ impl render::DragResizeHandler for Controller { // end was missed (cancelled), so nothing gets stuck lifted or capturing. if let Some(prev) = self.lifted_surface.take() { if let Some(surf) = self.manager.surfaces().get(prev) { - surf.window.set_layer(ShellLayer::Background); + surf.window.set_layer(ShellLayer::Bottom); } } if let Some(prev) = self.drag_input_surface.take() { @@ -1384,7 +1384,7 @@ impl render::DragResizeHandler for Controller { // Undo the Overlay lift (Desktop only). if let Some(idx) = self.lifted_surface.take() { if let Some(surf) = self.manager.surfaces().get(idx) { - surf.window.set_layer(ShellLayer::Background); + surf.window.set_layer(ShellLayer::Bottom); } } // Restore the precise note-union input region for whatever surface got the diff --git a/src/platform/surfaces.rs b/src/platform/surfaces.rs index e1e61cb..aaa33f0 100644 --- a/src/platform/surfaces.rs +++ b/src/platform/surfaces.rs @@ -14,7 +14,7 @@ impl SurfaceLayer { fn to_layer(self) -> Layer { match self { SurfaceLayer::Front => Layer::Top, - SurfaceLayer::Desktop => Layer::Background, + SurfaceLayer::Desktop => Layer::Bottom, } } }