From 9a9eddb132a308bd4de17a143e1e4919bfc9c7b1 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 23 Oct 2024 17:35:06 +0200 Subject: [PATCH] focus: Fix layer-popup locations --- src/shell/focus/order.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shell/focus/order.rs b/src/shell/focus/order.rs index f035d908..e03eb607 100644 --- a/src/shell/focus/order.rs +++ b/src/shell/focus/order.rs @@ -341,9 +341,7 @@ fn layer_popups<'a>( let location_clone = location.clone(); let surface_clone = surface.clone(); PopupManager::popups_for_surface(surface.wl_surface()).map(move |(popup, popup_offset)| { - let offset = (popup_offset - popup.geometry().loc) - .as_local() - .to_global(output); + let offset = (popup_offset - popup.geometry().loc).as_global(); (surface_clone.clone(), popup, (location_clone + offset)) }) })