mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-06 20:07:02 +00:00
fixup! isPlaceable: respect workarea
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user