x11: fix deadlock in request_ime_update

This commit is contained in:
Arthur Cosentino 2025-10-09 03:57:20 -04:00 committed by GitHub
parent 5575f51483
commit 10f21090ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2097,6 +2097,7 @@ impl UnownedWindow {
},
CoreImeRequest::Update(state) => {
if let Some(capabilities) = shared_state.ime_capabilities {
drop(shared_state);
(capabilities, state)
} else {
// The IME was not yet enabled, so discard the update.