diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index a59813673a2..94438ffd576 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -848,6 +848,7 @@ impl State { }); if has_ime_event || self.ime_rect != Some(ime_rect) { + self.ime_rect = Some(ime_rect); crate::profile_scope!("set_ime_cursor_area"); self.egui_ctx .send_viewport_cmd_to(self.viewport_id, ViewportCommand::IMERect(ime_rect));