From 2f4db693e3c826be7ac76629364630276e65bc25 Mon Sep 17 00:00:00 2001 From: Yifan Zhu Date: Mon, 12 Feb 2024 19:04:13 -0800 Subject: [PATCH] screenedge: don't reduce approachGeometry Reducing approachGeometry is not needed. During edge creation, createHorizontalEdge and createVerticalEdge already substract the needed cornerOffset, and edges reserved by client windows shouldn't be reduced in geometry. In addition, during display, ScreenEdgeEffect confines the painted area to approachGeometry. So approachGeometry shouldn't be reduced in advance. BUG: 481282 --- src/screenedge.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/screenedge.cpp b/src/screenedge.cpp index 1edbf1ee18..184182b01b 100644 --- a/src/screenedge.cpp +++ b/src/screenedge.cpp @@ -559,22 +559,14 @@ void Edge::setGeometry(const QRect &geometry) height = offset; } else { if (isLeft()) { - y += offset; width = offset; - height = height - offset * 2; } else if (isRight()) { x = x + width - offset; - y += offset; width = offset; - height = height - offset * 2; } else if (isTop()) { - x += offset; - width = width - offset * 2; height = offset; } else if (isBottom()) { - x += offset; y = y + height - offset; - width = width - offset * 2; height = offset; } }