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:
parent
aeca1af4ac
commit
119b00f896
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue