-
Notifications
You must be signed in to change notification settings - Fork 932
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
New XIM composition support doesn't not correctly negotiate with input method #2448
Comments
We try to pick method and fallback to other variant on failure if you look closely on the code. Using
|
@kchibisov there are 3 different issues. I'm just trying point one of them in this report. The actual issue
|
Yeah, I haven't tested fcitx at all during development and mostly used ibus, since that is what gnome uses, and I'm on Wayland and here we have a bit different IMEs and a bit better docs for all of that. I'll look into fixing this on X11 when I have time, thx for you feedback. |
Also, I don't think if there's any XIM server implementation send over a XIMError to make XCreateIC fail. The two state of art implementation (IMdkit which is used by xlib based one, used by fcitx4/ibus), xcb based on I created for fcitx5 https://github.com/fcitx/xcb-imdkit/, doesn't reject the style if it doesn't match the announced ones, which means GetIMValues should always be used. The else branch "create_none_ic" will never be executed in real world. |
It actually was executed, since adding it was a bug fix, see: |
ah, uim.. never know they're using their own xim implementation.. nice to know :) |
X input method may choose not to support all the input styles.
winit/src/platform_impl/linux/x11/ime/context.rs
Line 289 in fd72000
Basically this line will make client always create an input context with preedit callback, which is not supported by input method.
The correct way to do this is to do GetIMValues first, to list all the supported style
https://www.x.org/releases/X11R7.6/doc/libX11/specs/XIM/xim.html#Getting_IM_Values
Then send over a style in XCreateIC that is supported by input method.
The text was updated successfully, but these errors were encountered: