From cb67f451a26ba717b74bdcfce99fe289d1ff78e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 28 Apr 2019 10:06:15 +0200 Subject: [PATCH] don't use workarea.y directly Can cause problems if eg. a layout is triggered when a fullscreen window is active. --- tiling.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tiling.js b/tiling.js index 46d2dcd..24c3bac 100644 --- a/tiling.js +++ b/tiling.js @@ -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