Commit 119b00f8 authored by Bhushan Shah's avatar Bhushan Shah 📱 Committed by Aleix Pol Gonzalez
Browse files

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.
parent aeca1af4
......@@ -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);
......
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