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
This commit is contained in:
LGUG2Z
2024-05-14 14:10:08 -07:00
parent 0330dfe250
commit 81f741bbbd

View File

@@ -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;