From 744e0da6f9cdbf69edb82b3aa530111cc249b92b Mon Sep 17 00:00:00 2001 From: Ilia Malanin Date: Fri, 13 Feb 2026 21:45:03 +0100 Subject: [PATCH] shell: Pre-set fullscreen state before unmapping maximized/snapped windows Fixes #1642 --- src/shell/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 1512ab49..02f37475 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -4658,6 +4658,8 @@ impl Shell { stack.remove_window(&surface); surface } else { + mapped.set_fullscreen(true); + if let Some(state) = mapped.maximized_state.lock().unwrap().take() { mapped.set_maximized(false); set.sticky_layer.map_internal( @@ -4699,6 +4701,8 @@ impl Shell { return None; } + mapped.set_fullscreen(true); + let from = workspace.element_geometry(&mapped).unwrap(); let (surface, state) = workspace.unmap_surface(surface).unwrap(); window = surface;