diff options
| author | Sungyoon Cho <sungyoon@sungyooncho.dev> | 2024-04-05 01:34:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-04 17:34:04 +0100 |
| commit | c4b660a33930a0e60e853b6796c1fd76914b1719 (patch) | |
| tree | d3691bee844298b47a329350562302164beaae29 /src/protocols/TextInputV1.cpp | |
| parent | 4f3e90ad2d35db7a79bdf4b64d4c9377f5bb24bf (diff) | |
IME: fix crash on restarting IME (#5428)
Diffstat (limited to 'src/protocols/TextInputV1.cpp')
| -rw-r--r-- | src/protocols/TextInputV1.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |
