Skip to content

Commit

Permalink
fix(wm): always respect adjusted work area
Browse files Browse the repository at this point in the history
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
  • Loading branch information
LGUG2Z committed May 15, 2024
1 parent 0330dfe commit 81f741b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions komorebi/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81f741b

Please sign in to comment.