fix off-by-1 on multiscreen toppanel strutting
This commit is contained in:
parent
a0a976885c
commit
65f86baceb
1 changed files with 1 additions and 1 deletions
|
@ -3011,7 +3011,7 @@ void Client::handleMoveResize(int x, int y, int x_root, int y_root)
|
||||||
foreach (const QRect &r, strut.rects()) {
|
foreach (const QRect &r, strut.rects()) {
|
||||||
if (r.top() == 0 && r.width() > r.height() && // "top panel"
|
if (r.top() == 0 && r.width() > r.height() && // "top panel"
|
||||||
r.intersects(moveResizeGeom) && moveResizeGeom.top() < r.bottom()) {
|
r.intersects(moveResizeGeom) && moveResizeGeom.top() < r.bottom()) {
|
||||||
newTitleTop = r.bottom();
|
newTitleTop = r.bottom() + 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue