Description of problem: IMHO, the preedit buffer should be initialise in a new Input Context. At the moment, if a preedit buffer is not empty and a new application is started and toggle on the LE in the new application will cause the preedit buffer in the previous application to appear. Version-Release number of selected component (if applicable): im-sdk-12.0.1-6.svn1891 iiimf-le-chinput-0.3-6 How reproducible: Always Steps to Reproduce: 1.start gnome-terminal 2.toggle on chinput LE and enter hong (do not commit) 3.start gedit 4.toggle on chinput LE and enter h Actual results: In gedit, the preedit buffer will appear 'hong h' Expected results: Just 'h' Additional info:
In iiimf-le-chinput-3.0-11, the bug has resurfaced again. Steps: 1. log in as normal user with zh_CN locale and GNOME session 2. start gnome-terminal 3. toggle on (ctrl-space) 4. enter 'hong' (do not commit) 5. toggle off (ctrl-space) 6. toggle on (ctrl-space) 7. enter 'h' Actaul Result: preedit buffer contains 'hong h' Expected result: preedit buffer should be just 'h' instead of 'hong h'
fixed, clearing preedit when toggle the SC on.