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:
parent
78c8ebc345
commit
d7fd53e9b0
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue