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,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);
|
||||||
|
|
Loading…
Reference in a new issue