fixup! isPlaceable: respect workarea

This commit is contained in:
Tor Hedin Brønner
2019-02-12 21:17:46 +01:00
parent ed73c326ce
commit 7b2a6d0ad3
+1
View File
@@ -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) {