From 5449858e70d9e1c855b19e3b6f2890dd61569637 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 27 Mar 2024 17:48:50 +0100 Subject: [PATCH] Fix #385 --- src/shell/layout/floating/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shell/layout/floating/mod.rs b/src/shell/layout/floating/mod.rs index 092879c5..93cb7509 100644 --- a/src/shell/layout/floating/mod.rs +++ b/src/shell/layout/floating/mod.rs @@ -714,8 +714,7 @@ impl FloatingLayout { } res.and_then(|(element, space_offset)| { - let geometry = self.space.element_geometry(&element).unwrap().as_local(); - let point = location - geometry.loc.to_f64(); + let point = location - space_offset.to_f64(); element .focus_under(point.as_logical()) .map(|(surface, surface_offset)| {