diff --git a/src/utils/math.ts b/src/utils/math.ts index a2db7be..c8f2e84 100644 --- a/src/utils/math.ts +++ b/src/utils/math.ts @@ -7,10 +7,3 @@ function clamp(value: number, min: number, max: number) { } return value; } - -function rectEqual(a: QRect, b: QRect) { - return a.x === b.x && - a.y === b.y && - a.width === b.width && - a.height === b.height; -} diff --git a/src/world/clientState/Tiled.ts b/src/world/clientState/Tiled.ts index d39ffc8..b57a883 100644 --- a/src/world/clientState/Tiled.ts +++ b/src/world/clientState/Tiled.ts @@ -85,7 +85,7 @@ namespace ClientState { if (kwinClient.resize) { window.onUserResize(oldGeometry, !cursorChangedAfterResizeStart); } else { - const maximized = rectEqual(kwinClient.frameGeometry, desktop.clientArea); + const maximized = kwinClient.frameGeometry === desktop.clientArea; if (!client.isManipulatingGeometry() && !kwinClient.fullScreen && !maximized) { window.onFrameGeometryChanged(); }