mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-12-04 04:11:38 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user