tiv1: minor fixes for crashes
This commit is contained in:
parent
5dc1a5fec6
commit
0807b8b95f
3 changed files with 9 additions and 1 deletions
|
|
@ -113,6 +113,8 @@ void CTextInputV1ProtocolManager::removeTI(STextInputV1* pTI) {
|
|||
// if ((*TI)->resourceImpl)
|
||||
// wl_resource_destroy((*TI)->resourceImpl);
|
||||
|
||||
g_pInputManager->m_sIMERelay.removeTextInput((*TI)->pTextInput);
|
||||
|
||||
std::erase_if(m_pClients, [&](const auto& other) { return other.get() == pTI; });
|
||||
}
|
||||
|
||||
|
|
@ -131,6 +133,8 @@ static void destroyTI(wl_resource* resource) {
|
|||
wl_resource_set_user_data(resource, nullptr);
|
||||
}
|
||||
|
||||
g_pInputManager->m_sIMERelay.removeTextInput(TI->pTextInput);
|
||||
|
||||
TI->pTextInput->hyprListener_textInputDestroy.emit(nullptr);
|
||||
|
||||
g_pProtocolManager->m_pTextInputV1ProtocolManager->removeTI(TI);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue