Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Aleix Pol Gonzalez 2021-03-06 03:37:51 +00:00
parent 92d3cb2f22
commit 05811535d4

View file

@ -168,6 +168,10 @@ void InputMethod::clientAdded(AbstractClient* client)
}
});
connect(m_inputClient, &AbstractClient::frameGeometryChanged, this, refreshFrame);
// Current code have a assumption that InputMethod started by the kwin is virtual keyboard,
// InputMethod::hide sends out a deactivate signal to input-method client, this is not desired
// when we support input methods like ibus which can show and hide surfaces/windows as they please
// and are not exactly Virtual keyboards.
connect(m_inputClient, &AbstractClient::windowHidden, this, &InputMethod::hide);
connect(m_inputClient, &AbstractClient::windowClosed, this, &InputMethod::hide);
}