RFR: 8305418: [Linux] Replace obsolete XIM as Input Method Editor [v31]
Thiago Milczarek Sayao
tsayao at openjdk.org
Mon Dec 9 20:44:56 UTC 2024
On Mon, 9 Dec 2024 17:25:58 GMT, Martin Fox <mfox at openjdk.org> wrote:
>> modules/javafx.graphics/src/main/native-glass/gtk/glass_window_ime.cpp line 100:
>>
>>> 98:
>>> 99: void WindowContextBase::commitIME(gchar *str) {
>>> 100: if (im_ctx.on_preedit) {
>>
>> Through `LOG0`/`LOG1`, I found that the value of `im_ctx.on_preedit` is `false` under `fcitx`.
>> I removed this check, then tested under `fcitx` and `ibus`. All passed.
>
> @hellyguo Could you provide more details on which Linux distribution, input method, and fcitx version you're using?
>
> I just tested this on Ubuntu 24.10. For Chinese I'm using Intelligent Pinyin and for Japanese I'm using Mozc. Everything worked under Ibus but when I switched to fcitx 4 both my Chinese and Japanese input methods stopped working for all apps, not just JavaFX. This makes me think that I'm not setting up fcitx correctly. I did reboot at each step as I changed the configuration.
I did not test it with fcitx since gtk uses ibus. I think it's possible to use fcitx by installing a gtk im module.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1080#discussion_r1876727004
More information about the openjfx-dev
mailing list