From 729934160892ef06d71c82e89171ff2a657959a2 Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Fri, 5 Apr 2024 14:45:49 +0200 Subject: [PATCH] Tiled: use `clientGeometry` to determine border resize --- src/extern/kwin.d.ts | 1 + src/world/clientState/Tiled.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/extern/kwin.d.ts b/src/extern/kwin.d.ts index b7313da..7a14b45 100644 --- a/src/extern/kwin.d.ts +++ b/src/extern/kwin.d.ts @@ -52,6 +52,7 @@ interface KwinClient { readonly minSize: QmlSize; readonly transient: boolean; readonly transientFor: KwinClient; + readonly clientGeometry: Readonly; readonly move: boolean; readonly resize: boolean; readonly moveable: boolean; diff --git a/src/world/clientState/Tiled.ts b/src/world/clientState/Tiled.ts index 7332a9e..3f7e30e 100644 --- a/src/world/clientState/Tiled.ts +++ b/src/world/clientState/Tiled.ts @@ -82,8 +82,8 @@ namespace ClientState { if (kwinClient.resize) { resizing = true; - resizingBorder = Workspace.cursorPos.x > kwinClient.frameGeometry.right || - Workspace.cursorPos.x < kwinClient.frameGeometry.left; + resizingBorder = Workspace.cursorPos.x > kwinClient.clientGeometry.right || + Workspace.cursorPos.x < kwinClient.clientGeometry.left; window.column.grid.onUserResizeStarted(); } });