From 7b2a6d0ad3e79fa0b1da3ebfe1628420d89ac0bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Tue, 12 Feb 2019 21:17:46 +0100 Subject: [PATCH] fixup! isPlaceable: respect workarea --- tiling.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tiling.js b/tiling.js index 8aad505..ef6dbee 100644 --- a/tiling.js +++ b/tiling.js @@ -418,6 +418,7 @@ class Space extends Array { let clone = metaWindow.clone; let x = clone.targetX + this.targetX; let workArea = Main.layoutManager.getWorkAreaForMonitor(this.monitor.index); + workArea.x -= this.monitor.x; if (x + clone.width < workArea.x + stack_margin || x > workArea.x + workArea.width - stack_margin) {