Skip to content

Commit

Permalink
focus: Fix layer-popup locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Oct 23, 2024
1 parent 0092dac commit 9a9eddb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/shell/focus/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
})
Expand Down

0 comments on commit 9a9eddb

Please sign in to comment.