From d7fd53e9b00e8444247c302ce4ebaf2c54289d81 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 15 Jun 2022 13:03:31 +0200 Subject: [PATCH] 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. --- src/inputpanelv1window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/inputpanelv1window.cpp b/src/inputpanelv1window.cpp index 7f56b66f74..30201cc578 100644 --- a/src/inputpanelv1window.cpp +++ b/src/inputpanelv1window.cpp @@ -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;