Verified Commit a35e3075 authored by Xuetian Weng's avatar Xuetian Weng
Browse files

Do not send overlay geometry to text input.

(cherry picked from commit 374e9491)
parent 1cbd0caf
Pipeline #162807 passed with stage
in 12 minutes and 3 seconds
...@@ -615,7 +615,7 @@ void InputMethod::updateInputPanelState() ...@@ -615,7 +615,7 @@ void InputMethod::updateInputPanelState()
const bool bottomKeyboard = m_inputClient && m_inputClient->mode() != InputPanelV1Client::Overlay && m_inputClient->isShown(); const bool bottomKeyboard = m_inputClient && m_inputClient->mode() != InputPanelV1Client::Overlay && m_inputClient->isShown();
m_trackedClient->setVirtualKeyboardGeometry(bottomKeyboard ? m_inputClient->inputGeometry() : QRect()); 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 = m_trackedClient->frameGeometry() & m_inputClient->inputGeometry();
overlap.moveTo(m_trackedClient->mapToLocal(overlap.topLeft())); overlap.moveTo(m_trackedClient->mapToLocal(overlap.topLeft()));
} }
......
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