remove rectEqual
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user