mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-23 09:51:16 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user