mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-06-28 21:20:06 +00:00
don't use workarea.y directly
Can cause problems if eg. a layout is triggered when a fullscreen window is active.
This commit is contained in:
@@ -370,9 +370,9 @@ class Space extends Array {
|
||||
this._inLayout = false;
|
||||
return;
|
||||
}
|
||||
|
||||
let availableHeight = (workArea.height - prefs.vertical_margin);
|
||||
let y0 = workArea.y - this.monitor.y + prefs.vertical_margin;
|
||||
let availableHeight = (workArea.y - this.monitor.y + workArea.height -
|
||||
(panelBox.height)*this.showTopBar - prefs.vertical_margin);
|
||||
let y0 = (panelBox.height)*this.showTopBar + prefs.vertical_margin;
|
||||
let fixPointAttempCount = 0;
|
||||
|
||||
for (let i=0; i<this.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user