From 374e94918238f3ddb9d00c542f281d3d8a309efb Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Sat, 9 Apr 2022 07:25:44 -0700 Subject: [PATCH] Do not send overlay geometry to text input. --- src/inputmethod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); }