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

Redundant display when input Chinese on LineEdit (or TextEdit) #5982

Open
Horbin-Magician opened this issue Aug 28, 2024 · 3 comments
Open
Labels
a:backend-winit Winit backend (mS,mO) a:platform-windows Issue specific to Windows (mT,bS) bug Something isn't working upstream Needs a fix upstream

Comments

@Horbin-Magician
Copy link
Contributor

Horbin-Magician commented Aug 28, 2024

Win11, Slint1.7.2, renderer-skia-opengl, Rust

I found that extra initial are rendered below the input box when , it is redundant.

This will only happen when you type immediately after the input box has gained focus, like:

LineEdit.mp4

image

If it's more difficult for you to reproduce, please let me know as much information as possible about the code and I'll be happy to help deal with this problem.

Below is my demo code:
lineedit_demo.zip

@ogoffart ogoffart added bug Something isn't working a:platform-windows Issue specific to Windows (mT,bS) a:backend-winit Winit backend (mS,mO) labels Aug 29, 2024
@ogoffart
Copy link
Member

This is probably a problem in winit.

@ogoffart ogoffart added the need triaging Issue that the owner of the area still need to triage label Sep 6, 2024
@tronical
Copy link
Member

tronical commented Sep 16, 2024

I can reproduce this with plain windows 11 and (simplified) Chinese input. (happens with any renderer, etc.)

@tronical tronical removed the need triaging Issue that the owner of the area still need to triage label Sep 16, 2024
@Horbin-Magician
Copy link
Contributor Author

I have submit this problem on Winit, refering: rust-windowing/winit#3893

This issue may be caused by WM_IME_SETCONTEXT msg failing to hide composing text drawn by IME timely.

@tronical tronical added the upstream Needs a fix upstream label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:backend-winit Winit backend (mS,mO) a:platform-windows Issue specific to Windows (mT,bS) bug Something isn't working upstream Needs a fix upstream
Projects
None yet
Development

No branches or pull requests

4 participants
@tronical @ogoffart @Horbin-Magician and others