Skip to content

Fix: On Windows, Strange IME display after update #4269#4362

Closed
rustbasic wants to merge 42 commits intoemilk:masterfrom
rustbasic:patch43
Closed

Fix: On Windows, Strange IME display after update #4269#4362
rustbasic wants to merge 42 commits intoemilk:masterfrom
rustbasic:patch43

Conversation

@rustbasic
Copy link
Copy Markdown
Contributor

@rustbasic rustbasic closed this Apr 14, 2024
@rustbasic rustbasic reopened this Apr 14, 2024
@rustbasic rustbasic changed the title Fix: Strange IME display after update #4269 Fix: On Windows, Strange IME display after update #4269 Apr 14, 2024
let ime_rect_px = ime.rect * pixels_per_point;
let mut need_set_ime_cursor_area = true;

// On Wayland of Linux, repaints every frame Issue : See https://github.com/emilk/egui/pull/4254
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't this fixed in #4269 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the problem occurs on Windows, we have moved it down to only apply on Linux.

Comment on lines +829 to +830
need_set_ime_cursor_area = self.ime_rect_px != Some(ime_rect_px)
&& self.egui_ctx.input(|i| !i.events.is_empty());
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to treat Nix specially here? Isn't this logic sound for all OSes?

Copy link
Copy Markdown
Contributor Author

@rustbasic rustbasic Apr 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should only be applied on Linux.
Definitely shouldn't be applied on Windows.

Please check with emilk how to handle this on MacOs.

@rustbasic rustbasic requested a review from emilk April 21, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants