diff --git a/autotests/integration/inputmethod_test.cpp b/autotests/integration/inputmethod_test.cpp index 79bdd2961f..217b962cef 100644 --- a/autotests/integration/inputmethod_test.cpp +++ b/autotests/integration/inputmethod_test.cpp @@ -154,7 +154,7 @@ void InputMethodTest::testOpenClose() Test::render(surface.data(), toplevelConfigureRequestedSpy.last().first().value(), Qt::red); QVERIFY(frameGeometryChangedSpy.wait()); - QCOMPARE(client->frameGeometry().height(), 1024 - keyboardClient->inputGeometry().height() + 1); + QCOMPARE(client->frameGeometry().height(), 1024 - keyboardClient->inputGeometry().height()); // Hide the keyboard textInput->hideInputPanel(); diff --git a/src/inputpanelv1client.cpp b/src/inputpanelv1client.cpp index fafc6d1019..477eeabb50 100644 --- a/src/inputpanelv1client.cpp +++ b/src/inputpanelv1client.cpp @@ -96,7 +96,7 @@ void KWin::InputPanelV1Client::reposition() panelSize = panelSize.boundedTo(availableArea.size()); - QRect geo(availableArea.topLeft(), panelSize); + QRect geo(availableArea.bottomLeft() - QPoint{0, panelSize.height()}, panelSize); geo.translate((availableArea.width() - panelSize.width())/2, availableArea.height() - outputArea.height()); moveResize(geo); } break;