From 15b77d0207ec5a7ad0d0f29068089b0d4f21986b Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Fri, 25 Aug 2023 10:34:35 +0200 Subject: [PATCH] re-arrange after window move --- src/layout/Window.ts | 3 ++- src/world/ClientStateTiled.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layout/Window.ts b/src/layout/Window.ts index c36cc9b..98b9c8c 100644 --- a/src/layout/Window.ts +++ b/src/layout/Window.ts @@ -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) { diff --git a/src/world/ClientStateTiled.ts b/src/world/ClientStateTiled.ts index 6287fe9..a8fd20f 100644 --- a/src/world/ClientStateTiled.ts +++ b/src/world/ClientStateTiled.ts @@ -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); } } });