Problem Description
==========================
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.
---uname output---
4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Machine Type = x86_64 machine
Steps 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=@im=fcitx
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
Problem Description ======= ======= =====
=======
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.
---uname output---
4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Machine Type = x86_64 machine
Steps to Reproduce ======= ======= == @im=fcitx
=======
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
Mirroring this issue for Canonical's awareness.
Thank you.