Skip to content

Commit 0deab8d

Browse files
committed
layout/tiling: Fix swap stack overlay offset
1 parent c59e9a3 commit 0deab8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/shell/layout/tiling/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5323,7 +5323,7 @@ where
53235323
percentage,
53245324
swap_tree,
53255325
swap_desc.as_ref(),
5326-
|node_id, data, geo, original_geo, alpha, animating| {
5326+
|node_id, data, geo, _original_geo, alpha, animating| {
53275327
if swap_desc.as_ref().map(|desc| &desc.node) == Some(&node_id)
53285328
|| focused.as_ref() == Some(&node_id)
53295329
{
@@ -5484,14 +5484,14 @@ where
54845484
})
54855485
.unwrap_or(false)
54865486
{
5487-
let mut geo = mapped.active_window_geometry().as_local();
5488-
geo.loc += original_geo.loc;
5487+
let mut active_geo = mapped.active_window_geometry().as_local();
5488+
active_geo.loc += geo.loc - mapped.geometry().loc.as_local();
54895489
elements.insert(
54905490
0,
54915491
CosmicMappedRenderElement::Overlay(BackdropShader::element(
54925492
renderer,
54935493
Key::Window(Usage::Overlay, mapped.key()),
5494-
geo,
5494+
active_geo,
54955495
0.0,
54965496
0.3,
54975497
group_color,

0 commit comments

Comments
 (0)