| 796 | } |
| 797 | |
| 798 | void InputMethod::updateInputPanelState() |
| 799 | { |
| 800 | if (m_panel && shouldShowOnActive()) { |
| 801 | m_panel->allow(); |
| 802 | } |
| 803 | |
| 804 | RectF overlap = RectF(0, 0, 0, 0); |
| 805 | if (m_trackedWindow) { |
| 806 | const bool bottomKeyboard = m_panel && m_panel->mode() != InputPanelV1Window::Mode::Overlay && m_panel->isShown(); |
| 807 | m_trackedWindow->setVirtualKeyboardGeometry(bottomKeyboard ? m_panel->frameGeometry() : RectF()); |
| 808 | |
| 809 | if (m_panel && m_panel->mode() != InputPanelV1Window::Mode::Overlay) { |
| 810 | overlap = m_trackedWindow->frameGeometry() & m_panel->frameGeometry(); |
| 811 | overlap.moveTo(m_trackedWindow->mapToLocal(overlap.topLeft())); |
| 812 | } |
| 813 | } |
| 814 | |
| 815 | auto t = waylandServer()->seat()->textInputV2(); |
| 816 | if (!t) { |
| 817 | return; |
| 818 | } |
| 819 | t->setInputPanelState(m_panel && m_panel->isShown(), overlap.toRect()); |
| 820 | } |
| 821 | |
| 822 | void InputMethod::setInputMethodCommand(const QString &command) |
| 823 | { |
nothing calls this directly
no test coverage detected