From a1211e24996aa2fecda4f06fc6ec87ec8b5714cb Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Fri, 7 Mar 2025 13:33:25 +0100 Subject: [PATCH] floating: Refresh space after mapping --- src/shell/layout/floating/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell/layout/floating/mod.rs b/src/shell/layout/floating/mod.rs index b8a460a7..d3625291 100644 --- a/src/shell/layout/floating/mod.rs +++ b/src/shell/layout/floating/mod.rs @@ -371,6 +371,7 @@ impl FloatingLayout { } self.space .map_element(mapped, geometry.loc.as_logical(), true); + self.space.refresh(); } pub(in crate::shell) fn map_internal( @@ -585,6 +586,7 @@ impl FloatingLayout { ); } self.space.map_element(mapped, position.as_logical(), false); + self.space.refresh(); } pub fn remap_minimized( @@ -612,6 +614,7 @@ impl FloatingLayout { mapped.set_minimized(false); self.space .map_element(mapped.clone(), position.as_logical(), true); + self.space.refresh(); let target_geometry = self.space.element_geometry(&mapped).unwrap().as_local(); self.animations.insert( @@ -1062,6 +1065,7 @@ impl FloatingLayout { self.map(window, None); } self.space.map_element(mapped.clone(), location, false); + self.space.refresh(); for elem in new_elements.into_iter().rev() { focus_stack.append(&elem);