mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
x11: fix deadlock in request_ime_update
This commit is contained in:
@@ -2097,6 +2097,7 @@ impl UnownedWindow {
|
|||||||
},
|
},
|
||||||
CoreImeRequest::Update(state) => {
|
CoreImeRequest::Update(state) => {
|
||||||
if let Some(capabilities) = shared_state.ime_capabilities {
|
if let Some(capabilities) = shared_state.ime_capabilities {
|
||||||
|
drop(shared_state);
|
||||||
(capabilities, state)
|
(capabilities, state)
|
||||||
} else {
|
} else {
|
||||||
// The IME was not yet enabled, so discard the update.
|
// The IME was not yet enabled, so discard the update.
|
||||||
|
|||||||
Reference in New Issue
Block a user