diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index f2e33a10a0..b386f41807 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -235,7 +235,7 @@ void InputMethod::setPanel(InputPanelV1Window *panel) m_panel = panel; connect(panel->surface(), &SurfaceInterface::inputChanged, this, &InputMethod::updateInputPanelState); - connect(panel, &QObject::destroyed, this, [this] { + connect(panel, &Window::closed, this, [this]() { if (m_trackedWindow) { m_trackedWindow->setVirtualKeyboardGeometry({}); }