Do not send overlay geometry to text input.

This commit is contained in:
Weng Xuetian 2022-04-09 07:25:44 -07:00 committed by Xuetian Weng
parent 8947ece98f
commit 374e949182

View file

@ -625,7 +625,7 @@ void InputMethod::updateInputPanelState()
const bool bottomKeyboard = m_inputClient && m_inputClient->mode() != InputPanelV1Client::Overlay && m_inputClient->isShown();
m_trackedClient->setVirtualKeyboardGeometry(bottomKeyboard ? m_inputClient->inputGeometry() : QRect());
if (m_inputClient) {
if (m_inputClient && m_inputClient->mode() != InputPanelV1Client::Overlay) {
overlap = m_trackedClient->frameGeometry() & m_inputClient->inputGeometry();
overlap.moveTo(m_trackedClient->mapToLocal(overlap.topLeft()));
}