From 81f741bbbd46de94e50fa30cac849d4a9e78da4b Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Tue, 14 May 2024 14:10:08 -0700 Subject: [PATCH] fix(wm): always respect adjusted work area This commit fixes a regression which led to the adjusted work area for a monitor not being respected when applying additional window-based work area offsets. re #811 --- komorebi/src/workspace.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/komorebi/src/workspace.rs b/komorebi/src/workspace.rs index 779b9e3b..a5282e2d 100644 --- a/komorebi/src/workspace.rs +++ b/komorebi/src/workspace.rs @@ -245,9 +245,9 @@ impl Workspace { if self.containers().len() == 1 { adjusted_work_area = single_window_work_area_offset.map_or_else( - || *work_area, + || adjusted_work_area, |offset| { - let mut with_offset = *work_area; + let mut with_offset = adjusted_work_area; with_offset.left += offset.left; with_offset.top += offset.top; with_offset.right -= offset.right;