From c4b660a33930a0e60e853b6796c1fd76914b1719 Mon Sep 17 00:00:00 2001 From: Sungyoon Cho Date: Fri, 5 Apr 2024 01:34:04 +0900 Subject: IME: fix crash on restarting IME (#5428) --- src/protocols/TextInputV1.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/protocols/TextInputV1.cpp') diff --git a/src/protocols/TextInputV1.cpp b/src/protocols/TextInputV1.cpp index 7535033a..8fff4db5 100644 --- a/src/protocols/TextInputV1.cpp +++ b/src/protocols/TextInputV1.cpp @@ -167,11 +167,13 @@ void CTextInputV1ProtocolManager::handleActivate(wl_client* client, wl_resource* Debug::log(WARN, "Text-input-v1 PTI{:x}: No surface to activate text input on!", (uintptr_t)PTI); return; } + PTI->active = true; PTI->pTextInput->onEnabled(wlr_surface_from_resource(surface)); } void CTextInputV1ProtocolManager::handleDeactivate(wl_client* client, wl_resource* resource, wl_resource* seat) { const auto PTI = tiFromResource(resource); + PTI->active = false; PTI->pTextInput->onDisabled(); } -- cgit v1.2.3