Modifier keys and fcitx5 are weird on GTK programs

I’m not sure if these 2 have same causes but their symptoms sounds similar so I’m asking both on same thread.
I am unable to type out Korean using fcitx5 on gimp. It used to work, but I forgot since when it didn’t. Korean characters are composed of multiple characters, so I’d need to type multiple keys to input one character. However GIMP writes a character for every character, and I can’t compose them. Text in below image is example of this


It should say “가나다라마바” not “ㄱㅏ ㄴㅏㄷㅏㄹㅏㅁㅏㅂㅏ”

Modifier keys works on GIMP but not on KiCad. I can’t use shift for capitalization, I can’t erase character, I can’t copy/paste texts with CTRL+C or V. The mouse works though, I’ve been dragging section of text I want to remove and typed replacement character and using mouse to copy/paste texts to get around it but it’s getting tedious as you could imagine.
I think there was other python app using gtk that had same problem so I’m guessing this is also gtk problem. I think it was opencv’s preview window?

I’m using Neon 24.04 with KDE plasmashell version 6.3.2

Try turning off “Show pre-edited text in program” in the configuration, this will allow the compiled text to be previewed in the IME input box and not in the program, I always turn this option off.

1 Like

I’m not sure what the exact name of this option is in Korean/English as I use a different language, you can find it on the second page of Fcitx5 settings (Global Options), in the second column (Behavior), in the third entry.

Sorry for late reply, Yeah that option seems to work in gimp but only until I press ctrl
The ctrl shouldn’t do anything regarding what I actually end up typing. But for some reason if I even tap ctrl once the problem occurs again.
If i create new text box, it gets fixed but still only until I press ctrl

I did some investigating and found out it’s related with fcitx5. If I use x11, it works, since it doesn’t have fcitx5. If I kill fcitx5 on wayland, it also works.
Strange…