RFR: 8305418: [Linux] Replace obsolete XIM as Input Method Editor [v26]
Martin Fox
mfox at openjdk.org
Thu Oct 10 21:13:31 UTC 2024
On Thu, 3 Oct 2024 14:23:24 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:
>> This replaces obsolete XIM and uses gtk api for IME.
>> Gtk uses [ibus](https://github.com/ibus/ibus)
>>
>> Gtk3+ uses relative positioning (as Wayland does), so I've added a Relative positioning on `InputMethodRequest`.
>>
>> [Screencast from 17-09-2023 21:59:04.webm](https://github.com/openjdk/jfx/assets/30704286/6c398e39-55a3-4420-86a2-beff07b549d3)
>
> Thiago Milczarek Sayao has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 105 commits:
>
> - Remove idea file
> - Fix the case when IME filters key_press (Polish ALT Gr + C)
> - Merge branch 'master' into new_ime
> - Fix for Polish AltGR combinations
> - Remove negative checks
> - Revert idea file
> - Remove unused import
> - Fix review points
> - Merge branch 'master' into new_ime
> - Merge branch 'refs/heads/master' into new_ime
> - ... and 95 more: https://git.openjdk.org/jfx/compare/5428f267...e56588ba
The problem seems to be caused by a combination of Ubuntu 24 + IBus + IBUS_ENABLE_SYNC_MODE=0. The easiest work around is to set IBUS_ENABLE_SYNC_MODE=1 on the command line before launching Java. Turning on this flag also makes the key event doubling go away.
On Ubuntu 22 everything works fine regardless of the sync mode setting. Under the hood it changes the event doubling behavior but regardless of the setting we don't get "commit" signals at unexpected times.
I also mentioned something about the KeyCode assigned to AltGr. It's a JavaFX bug that's already been fixed in master. I have no excuse for not recognizing that since I was the one who fixed the bug.
And I was wrong about KDE using Wayland; it uses X11.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1080#issuecomment-2406044068
More information about the openjfx-dev
mailing list