inputmethod: use output geometry for positioning keyboard when locked

otherwise it will take the panel strut in account when positioning
inputmethod on lockscreen and that will not be positioned correctly.
This commit is contained in:
Bhushan Shah 2021-05-07 09:14:55 +05:30 committed by Aleix Pol Gonzalez
parent aeca1af4ac
commit 119b00f896

View file

@ -69,7 +69,12 @@ void KWin::InputPanelV1Client::reposition()
return;
}
const QRect availableArea = workspace()->clientArea(MaximizeArea, m_output, desktop());
QRect availableArea;
if (waylandServer()->isScreenLocked()) {
availableArea = m_output->geometry();
} else {
availableArea = workspace()->clientArea(MaximizeArea, m_output, desktop());
}
QRect geo(availableArea.topLeft(), panelSize);
geo.translate((availableArea.width() - panelSize.width())/2, availableArea.height() - panelSize.height());
updateGeometry(geo);