Commit d7fd53e9 authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by David Edmundson
Browse files

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.
parent 78c8ebc3
Pipeline #204048 passed with stage
in 23 minutes and 49 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment