From 21483b8d41aeea3f4eac919201117eea0e00c8f0 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 29 Feb 2024 15:31:04 +0100 Subject: [PATCH] floating/resize: Fix jumping on multi-monitor setups --- src/shell/layout/floating/grabs/resize.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/shell/layout/floating/grabs/resize.rs b/src/shell/layout/floating/grabs/resize.rs index 27153d11..0c453e62 100644 --- a/src/shell/layout/floating/grabs/resize.rs +++ b/src/shell/layout/floating/grabs/resize.rs @@ -371,9 +371,11 @@ impl ResizeSurfaceGrab { } } } - floating_layer - .space - .map_element(window, new_location.as_logical(), false); + floating_layer.space.map_element( + window, + new_location.to_local(&output).as_logical(), + false, + ); } } }