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,8 +200,10 @@ void InputMethod::handleFocusedSurfaceChanged()
disconnect(m_trackedClient, &AbstractClient::frameGeometryChanged, this, &InputMethod::updateInputPanelState); disconnect(m_trackedClient, &AbstractClient::frameGeometryChanged, this, &InputMethod::updateInputPanelState);
} }
m_trackedClient = focusedClient; m_trackedClient = focusedClient;
if (m_trackedClient) {
connect(m_trackedClient, &AbstractClient::frameGeometryChanged, this, &InputMethod::updateInputPanelState, Qt::QueuedConnection); connect(m_trackedClient, &AbstractClient::frameGeometryChanged, this, &InputMethod::updateInputPanelState, Qt::QueuedConnection);
} }
}
updateInputPanelState(); updateInputPanelState();
} else { } else {
setActive(false); setActive(false);