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:
parent
213c98213a
commit
7261bbb230
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue