Bug 470833 - kate and kwrite does not draw IBus pre-edit segment color
Summary: kate and kwrite does not draw IBus pre-edit segment color
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-09 16:06 UTC by fujiwara
Modified: 2023-06-09 16:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kwrite screenshot (683.25 KB, image/png)
2023-06-09 16:07 UTC, fujiwara
Details
qtbase/examples/widgets/mainwindows/application screenshot (945.29 KB, image/png)
2023-06-09 16:08 UTC, fujiwara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fujiwara 2023-06-09 16:06:40 UTC
SUMMARY
The desktop environment is Plasma X11 and using QT_IM_MODULE=ibus environment variable.

STEPS TO REPRODUCE
1. Run kwrite with QT_IM_MODULE=ibus
2. Enable ibus-anthy and Hiragana mode
3. Type "watashinamaehapendesu." keys and space key

OBSERVED RESULT
The whole the string is drawn with a black underline but the activated segment color is *not* drawn.

EXPECTED RESULT
The whole the string is drawn with a black underline and the activated segment color is drawn.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Fedora 38
(available in About System)
KDE Plasma Version: plasma-workspace-5.27.5-1.fc38.x86_64
KDE Frameworks Version: 
Qt Version: qt5-qtbase-5.15.9-3.fc38.x86_64

ADDITIONAL INFORMATION

qtbase/rc/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:QIBusPlatformInputContext::updatePreeditText() sends the pre-edit segment color against whole the pre-edit string using QinputMethodEvent but the color is not drawn in kwrite and konsole.

I know Wayland input-method protocol does not support the preedit colors yet but the colors had worked in Plasma X11. Maybe after Plasma Wayland was integrated, the regression was also integrated in Plasma X11.
Comment 1 fujiwara 2023-06-09 16:07:55 UTC
Created attachment 159567 [details]
kwrite screenshot

kwrite does not work.
Comment 2 fujiwara 2023-06-09 16:08:53 UTC
Created attachment 159568 [details]
qtbase/examples/widgets/mainwindows/application screenshot

qtbase/examples/widgets/mainwindows/application works fine.