Correct bottom left corner when placing a bottom toplevel input panel

`bottomLeft()` is affected by the same issue as anything else using
bottom, that is, it is off by 1. So instead use top() + height() for the
bottom edge.
This commit is contained in:
Arjen Hiemstra 2022-06-15 13:03:31 +02:00 committed by David Edmundson
parent 78c8ebc345
commit d7fd53e9b0

View file

@ -95,8 +95,7 @@ void KWin::InputPanelV1Window::reposition()
}
panelSize = panelSize.boundedTo(availableArea.size());
QRect geo(availableArea.bottomLeft() - QPoint{0, panelSize.height()}, panelSize);
QRect geo(QPoint{availableArea.left(), availableArea.top() + availableArea.height() - panelSize.height()}, panelSize);
geo.translate((availableArea.width() - panelSize.width()) / 2, availableArea.height() - outputArea.height());
moveResize(geo);
} break;