Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 42 commits into from

Conversation

rustbasic
Copy link
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
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
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
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
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