re-arrange after window move

This commit is contained in:
Peter Fajdiga
2023-08-25 10:34:35 +02:00
parent d23c13c344
commit 15b77d0207
2 changed files with 3 additions and 2 deletions

View File

@@ -109,9 +109,10 @@ class Window {
}
}
public onProgrammaticResize(oldGeometry: QRect) {
public onFrameGeometryChanged(oldGeometry: QRect) {
const newGeometry = this.client.kwinClient.frameGeometry;
this.column.setWidth(newGeometry.width, true);
this.column.grid.container.onLayoutChanged();
}
public destroy(passFocus: boolean) {

View File

@@ -86,7 +86,7 @@ class ClientStateTiled {
} else {
const maximized = rectEqual(kwinClient.frameGeometry, desktop.clientArea);
if (!client.isManipulatingGeometry() && !kwinClient.fullScreen && !maximized) {
window.onProgrammaticResize(oldGeometry);
window.onFrameGeometryChanged(oldGeometry);
}
}
});