Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: When using x input method in gtk3 application, hangul input is broken.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
Summary: When using x input method in gtk3 application, hangul input is broken. Product: Fedora Version: rawhide Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: unspecified Priority: unspecified Component: ibus AssignedTo: tfujiwar@redhat.com ReportedBy: sangu.fedora@gmail.com QAContact: extras-qa@fedoraproject.org CC: tfujiwar@redhat.com, i18n-bugs@lists.fedoraproject.org, shawn.p.huang@gmail.com Classification: Fedora
Description of problem: When x input method in gtk3 application, hangul input is broken.
$ gedit [...] ** (gedit:3457): WARNING **: Invalid change to preedit string, first=0 length=1 (orig length == 0)
** (gedit:3457): WARNING **: Invalid change to preedit string, first=0 length=1 (orig length == 0)
** (gedit:3457): WARNING **: Invalid change to preedit string, first=0 length=3 (orig length == 0)
** (gedit:3457): WARNING **: Invalid change to preedit string, first=0 length=1 (orig length == 0)
Version-Release number of selected component (if applicable): 1.3.99.20110127-4.fc15.x86_64
How reproducible: always
Steps to Reproduce: 1. launch gedit 2. change to x input method in gedit 3. input hangul
Actual results: rkrkrkrkrkrkrk가가가가가
Expected results: 가가가가가가가가가가가
Additional info:
gtk3-3.0.0-1.fc15.x86_64 ibus-hangul-1.3.0.20100329-5.fc15.x86_64
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #1 from fujiwara tfujiwar@redhat.com 2011-02-16 23:32:59 EST --- Interested. Thanks for filing the bug. I might notice the issue but I forgot it.
We need to remove the snooper when we switch the input methods.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |ON_DEV
--- Comment #2 from fujiwara tfujiwar@redhat.com 2011-02-17 02:11:00 EST --- https://github.com/fujiwarat/ibus/commit/6575fab67eaf6f8e483a001f26dbfd61c32...
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_DEV |CLOSED Resolution| |CURRENTRELEASE Last Closed| |2011-02-17 02:58:08
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |ibus-1.3.99.20110206-2.fc15
--- Comment #3 from fujiwara tfujiwar@redhat.com 2011-02-17 02:59:13 EST --- http://koji.fedoraproject.org/koji/taskinfo?taskID=2845917
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
--- Comment #4 from Fedora Update System updates@fedoraproject.org 2011-02-17 03:05:10 EST --- ibus-1.3.99.20110206-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/ibus-1.3.99.20110206-2.fc15
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
--- Comment #5 from Fedora Update System updates@fedoraproject.org 2011-03-02 22:01:30 EST --- ibus-1.3.99.20110206-4.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|ibus-1.3.99.20110206-2.fc15 |ibus-1.3.99.20110206-4.fc15 Resolution|CURRENTRELEASE |ERRATA
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
sangu sangu.fedora@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ASSIGNED Resolution|ERRATA | Keywords| |Reopened
--- Comment #6 from sangu sangu.fedora@gmail.com 2011-03-06 23:57:39 EST --- Not Fixed in ibus-1.3.99.20110206-4.fc15.x86_64.
gtk3-3.0.1-2.fc15.x86_64 ibus-hangul-1.3.1-1.fc15.x86_64
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
--- Comment #7 from fujiwara tfujiwar@redhat.com 2011-03-09 01:41:11 EST --- There are two problems. One is that snooper was not removed when the im client is switched from ibus to xim and it was fixed in ibus-1.3.99.20110206-4.fc15.
Another is that ibus-x11 doesn't receive KeyPress events because KeyRelease events are buffered in X11. If the im client is gtk-xim, the gtk_im_context_xim_filter_keypress() calls XFilterEvent() and XFilterEvent() calls XSendEvent() internally. ibus-x11 receives the key event from XFilterEvent() -> WaitXIMProtocol() -> xim_forward_event().
ibus_hangul_engine_process_key_event returns FALSE in KeyRelease. If the process_key_events returns FALSE, xim_forward_event() sends the same event again with XIM_FORWARD_EVENT. It seems gdk does not pick up the forwarded KeyRelease events with XFilterEvent() in _gdk_x11_display_queue_events(). So if you type the next chars, the events are not KeyPress but the buffered KeyRelease. XFilterEvent() always returns FALSE for the buffered events in _XimProtoKeypressFilter(). So gtk-xim outputs the ASCII chars but not the chars from ibus-hangul. XIM_FORWARD_EVENT has the option of sync_bit but it seems it's not handled correctly at present.
The possible solution is to ignore the KeyRelease event for gtk-xim. --- ibus/client/x11/main.c +++ ibus/client/x11/main.c @@ -654,7 +654,7 @@ xim_get_ic_values (XIMS xims, IMChangeIC for (i = 0; i < (int) call_data->ic_attr_num; ++i, ++ic_attr) { if (g_strcmp0 (XNFilterEvents, ic_attr->name) == 0) { ic_attr->value = (void *) malloc (sizeof (CARD32)); - *(CARD32 *) ic_attr->value = KeyPressMask | KeyReleaseMask; + *(CARD32 *) ic_attr->value = KeyPressMask; ic_attr->value_length = sizeof (CARD32); } }
I'll talk with the maintainer.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
--- Comment #8 from fujiwara tfujiwar@redhat.com 2011-03-10 22:34:56 EST --- If we apply this fix, we need to make sure there is no regressions in qt3, qt4, X and Java. I'll be back this problem after beta maybe because now I focus on gnome-shell. I guess this problem is not so critical since you can use ibus client but not gtk-xim.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |paul@city-fan.org, | |pertusus@free.fr, | |rdieter@math.unl.edu Component|ibus |gtk+ AssignedTo|tfujiwar@redhat.com |paul@city-fan.org
--- Comment #9 from fujiwara tfujiwar@redhat.com 2011-04-05 02:20:34 EDT --- I'd suggest this is a gtk3 bug: https://bugzilla.gnome.org/show_bug.cgi?id=645993
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mclasen@redhat.com Component|gtk+ |gtk3 AssignedTo|paul@city-fan.org |mclasen@redhat.com
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=677856
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |RAWHIDE Last Closed|2011-02-17 02:58:08 |2011-09-13 23:36:21
i18n-bugs@lists.fedoraproject.org