Commit e043f226 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

inputmethod: Fix the test

We should account for keyboards that are not full screen (unlike
maliit). It shouldn't make a difference for maliit.
parent badf4929
Pipeline #147423 passed with stage
in 14 minutes and 45 seconds
......@@ -154,7 +154,7 @@ void InputMethodTest::testOpenClose()
Test::render(surface.data(), toplevelConfigureRequestedSpy.last().first().value<QSize>(), 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();
......
......@@ -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;
......
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