From ce969e77f3ebf14e2610d1d2a9a08b1ee3e034da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 12 Jan 2020 17:10:20 +0100 Subject: [PATCH] addWindow: don't run layout automatically Running two layouts after each other on wayland can cause the second resize to be lost. So avoid doing an automatic layout on addWindow giving the calling code better control of the subsequent layout. --- tiling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index 236437b..dbfdd2e 100644 --- a/tiling.js +++ b/tiling.js @@ -587,7 +587,6 @@ class Space extends Array { let workArea = this.workArea(); this.targetX = workArea.x + Math.round((workArea.width - this.cloneContainer.width)/2); } - this.layout(); this.emit('window-added', metaWindow, index, row); return true; } @@ -2380,6 +2379,7 @@ function insertWindow(metaWindow, {existing}) { metaWindow.unmaximize(Meta.MaximizeFlags.BOTH); toggleMaximizeHorizontally(metaWindow); } + space.layout(); if (!existing) { actor.opacity = 0;