Skip to content

Commit

Permalink
Add an explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Dec 3, 2024
1 parent 6e09d50 commit 0e73030
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion masonry/src/event_loop_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,9 @@ impl MasonryState<'_> {
accesskit_adapter.update_if_active(|| tree_update);
}
WinitWindowEvent::CloseRequested => {
//
// HACK: When we exit, on some systems (known to happen with Wayland on KDE),
// the IME state gets preserved until the app next opens. We work around this by force-deleting
// the IME state just before exiting.
window.set_ime_allowed(false);
event_loop.exit();
}
Expand Down

0 comments on commit 0e73030

Please sign in to comment.