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 3165869 commit a19432f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,13 +825,8 @@ impl State {

// On Wayland of Linux, repaints every frame : See https://github.com/emilk/egui/pull/4254
if self.egui_ctx.os() == egui::os::OperatingSystem::Nix {
if self.ime_rect_px != Some(ime_rect_px)
&& self.egui_ctx.input(|i| !i.events.is_empty())
{
need_set_ime_cursor_area = true;
} else {
need_set_ime_cursor_area = false;
}
need_set_ime_cursor_area = self.ime_rect_px != Some(ime_rect_px)
&& self.egui_ctx.input(|i| !i.events.is_empty());
}

if need_set_ime_cursor_area {
Expand Down

0 comments on commit a19432f

Please sign in to comment.