From bbb90161133d0c6a6dca0cbf4132ca15c38990a6 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 28 Dec 2023 17:40:17 +0000 Subject: [PATCH] floating: Fix crash resizing tiled windows --- src/shell/layout/floating/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/layout/floating/mod.rs b/src/shell/layout/floating/mod.rs index 2560aaa5..afc2f413 100644 --- a/src/shell/layout/floating/mod.rs +++ b/src/shell/layout/floating/mod.rs @@ -462,7 +462,7 @@ impl FloatingLayout { release: ReleaseMode, ) -> Option { if seat.get_pointer().is_some() { - let location = self.space.element_location(&mapped).unwrap().as_local(); + let location = self.space.element_location(&mapped)?.as_local(); let size = mapped.geometry().size; mapped.moved_since_mapped.store(true, Ordering::SeqCst);