From f43c39879d7ede0ede2bc495c995274f7630a176 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 23 Oct 2022 23:51:22 +0200 Subject: [PATCH] inputmethod: reset m_shouldShowPanel when the tracked window changes --- src/inputmethod.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 7fe119ca5f..3a73fb565c 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -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); }