From 82553311428be5c248068bb75ff9fd642e115e7c Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 25 May 2023 14:52:09 +0200 Subject: [PATCH] tiling: Align root level windows with root-level group windows Fixes #119. --- src/shell/layout/tiling/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index e5e53453..69dbea82 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -1749,7 +1749,11 @@ where ) .into(), ); + } + if is_potential_group + || node.parent().map(|parent| parent == root).unwrap_or(false) + { geo.loc += (gap, gap).into(); geo.size -= (gap * 2, gap * 2).into(); }