Fix bad QObject::connect() argument

This fixes the warning that's printed when InputMethod tries to connect
the frameGeometryChanged signal of a null toplevel.
This commit is contained in:
Vlad Zahorodnii 2021-05-09 21:42:51 +03:00 committed by David Edmundson
parent 213c98213a
commit 7261bbb230

View file

@ -200,7 +200,9 @@ void InputMethod::handleFocusedSurfaceChanged()
disconnect(m_trackedClient, &AbstractClient::frameGeometryChanged, this, &InputMethod::updateInputPanelState);
}
m_trackedClient = focusedClient;
connect(m_trackedClient, &AbstractClient::frameGeometryChanged, this, &InputMethod::updateInputPanelState, Qt::QueuedConnection);
if (m_trackedClient) {
connect(m_trackedClient, &AbstractClient::frameGeometryChanged, this, &InputMethod::updateInputPanelState, Qt::QueuedConnection);
}
}
updateInputPanelState();
} else {