inputmethod: reset m_shouldShowPanel when the tracked window changes

This commit is contained in:
Xaver Hugl 2022-10-23 23:51:22 +02:00
parent 75806ecff5
commit f43c39879d

View file

@ -251,6 +251,7 @@ void InputMethod::setTrackedWindow(Window *trackedWindow)
disconnect(m_trackedWindow, &Window::frameGeometryChanged, this, &InputMethod::updateInputPanelState);
}
m_trackedWindow = trackedWindow;
m_shouldShowPanel = false;
if (m_trackedWindow) {
connect(m_trackedWindow, &Window::frameGeometryChanged, this, &InputMethod::updateInputPanelState, Qt::QueuedConnection);
}