Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Apr 14, 2024
1 parent 92998bf commit 3165869
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,6 @@ impl State {
}
}

self.ime_rect_px = Some(ime_rect_px);

if need_set_ime_cursor_area {
crate::profile_scope!("set_ime_cursor_area");
window.set_ime_cursor_area(
Expand All @@ -848,6 +846,10 @@ impl State {
height: ime_rect_px.height(),
},
);

self.ime_rect_px = Some(ime_rect_px);
} else {
self.ime_rect_px = None;
}
} else {
self.ime_rect_px = None;
Expand Down

0 comments on commit 3165869

Please sign in to comment.