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
This commit is contained in:
parent
55ef69645c
commit
2f4db693e3
1 changed files with 0 additions and 8 deletions
|
@ -559,22 +559,14 @@ void Edge::setGeometry(const QRect &geometry)
|
||||||
height = offset;
|
height = offset;
|
||||||
} else {
|
} else {
|
||||||
if (isLeft()) {
|
if (isLeft()) {
|
||||||
y += offset;
|
|
||||||
width = offset;
|
width = offset;
|
||||||
height = height - offset * 2;
|
|
||||||
} else if (isRight()) {
|
} else if (isRight()) {
|
||||||
x = x + width - offset;
|
x = x + width - offset;
|
||||||
y += offset;
|
|
||||||
width = offset;
|
width = offset;
|
||||||
height = height - offset * 2;
|
|
||||||
} else if (isTop()) {
|
} else if (isTop()) {
|
||||||
x += offset;
|
|
||||||
width = width - offset * 2;
|
|
||||||
height = offset;
|
height = offset;
|
||||||
} else if (isBottom()) {
|
} else if (isBottom()) {
|
||||||
x += offset;
|
|
||||||
y = y + height - offset;
|
y = y + height - offset;
|
||||||
width = width - offset * 2;
|
|
||||||
height = offset;
|
height = offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue