Skip to content

Commit 10f2109

Browse files
authored
x11: fix deadlock in request_ime_update
1 parent 5575f51 commit 10f2109

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

winit-x11/src/window.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,7 @@ impl UnownedWindow {
20972097
},
20982098
CoreImeRequest::Update(state) => {
20992099
if let Some(capabilities) = shared_state.ime_capabilities {
2100+
drop(shared_state);
21002101
(capabilities, state)
21012102
} else {
21022103
// The IME was not yet enabled, so discard the update.

0 commit comments

Comments
 (0)