remove rectEqual

This commit is contained in:
Peter Fajdiga
2023-09-02 09:07:28 +02:00
parent 4b0f259c6d
commit 425c5c9e5b
2 changed files with 1 additions and 8 deletions

View File

@@ -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;
}

View File

@@ -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();
}