[SRU] fcitx does not handle XmbReetIC() properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fcitx (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Aron Xu |
Bug Description
[Impact]
fcitx XIM server cannot handle XmbResetIC() as expected.
By XmbResetIC(), fcitx should return preedit string or cancel preedit.
But even if XmbResetIC() was called, fcitx still had preedit string, preedit string was not flushed.
[Test Case]
Step to reproduce:
This testing requires Japanese environment on Ubuntu Desktop 16.04.
Also fcitx , fcitx-module-X11, fcitx-mozc, mozc-server should be configured
1. Login to Ubuntu Desktop
2. Open gnome-terminial
3. Set XMODIFIERS environment variable to @im=fcitx
$ export XMODIFIERS=
4. Compile and run test program
5. Turn on IME, by Ctrl+Space
6. Type "a", then preedit string which is on preedit window is displayed under XIM demo window
7. Move mouse cursor on XIM demo window, then press Right mouse button
8. Then XmbResetIC() is called, but preedit window is still there and preedit string is still there.
(Preedit string should be flushed by XmbResetIC())
9. Type "i", 2 characters are displayed into preedit string
When fixed, preedit string should be gone.
[Regression Potential]
This minimal patch is from upstream, which only touches the specific area, and it's in yakkety for a while without problem.
Changed in fcitx-configtool (Ubuntu): | |
assignee: | Taco Screen team (taco-screen-team) → nobody |
affects: | fcitx-configtool (Ubuntu) → fcitx (Ubuntu) |
Changed in fcitx (Ubuntu Xenial): | |
status: | New → Triaged |
summary: |
- fcitx does not handle XmbReetIC() properly + [SRU] fcitx does not handle XmbReetIC() properly |
description: | updated |
Changed in fcitx (Ubuntu Xenial): | |
status: | Triaged → In Progress |
assignee: | nobody → Aron Xu (happyaron) |
Default Comment by Bridge