diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 47ac7b23df..169ad576a8 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -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())); }