Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: Discarding the key events and same output regardless of the key
https://bugzilla.redhat.com/show_bug.cgi?id=466657
Summary: Discarding the key events and same output regardless of the key Product: Fedora Version: rawhide Platform: All OS/Version: Linux Status: NEW Severity: medium Priority: medium Component: scim AssignedTo: shawn.p.huang@gmail.com ReportedBy: tagoh@redhat.com QAContact: extras-qa@fedoraproject.org CC: petersen@redhat.com, shawn.p.huang@gmail.com, fedora-i18n-bugs@redhat.com Estimated Hours: 0.0 Classification: Fedora
Description of problem: key input too faster and too much messes up SCIM.
Version-Release number of selected component (if applicable): scim-1.4.7-34.fc10
Steps to Reproduce: 1.input something too much and too faster 2. 3.
Actual results: discarding the key event or return the same key event regardless of what pressing/releasing the key.
Expected results: should works expectedly.
Additional info: Technically it happens when multiple XIM_FORWARD_EVENT is added to the property when the key event is delivered faster than processing it in SCIM. and when it's there more than 4 in the property, it results the same output regardless of what you are pressing/releasing the key. otherwise the key event is discarded. Why it returns the same key event when the property has something more than 4, IMdkit is getting the value from the property wrongly. a quote from man page:
int XGetWindowProperty(Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom reg_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return); ... long_length Specifies the length in 32-bit multiples of the data to be retrieved.
and XGetWindowProperty won't delete the property value even if "delete" is True, when there are still unread data.
To do the right thing, read the data with the proper length to not discard the event. and if there are still the unread data in the property, read next data with "long_offset".
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=466657
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |452849
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=466657
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |438944
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=466657
--- Comment #1 from Huang Peng shawn.p.huang@gmail.com 2008-10-13 23:07:48 EDT --- Could you provide a patch to fix XIM problem? Thanks.
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=466657
--- Comment #2 from Akira TAGOH tagoh@redhat.com 2008-10-14 06:43:58 EDT --- Created an attachment (id=320277) --> (https://bugzilla.redhat.com/attachment.cgi?id=320277) test code for discarding the key event issue
% gcc scim_discarding.c `pkg-config --cflags --libs gtk+-2.0 gio-2.0` % GTK_IM_MODULE=xim XMODIFIERS=@im=SCIM ./a.out
After pressing the button, "ab" should be put on the entry. otherwise SCIM may be discarding the forward event.
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=466657
--- Comment #3 from Akira TAGOH tagoh@redhat.com 2008-10-14 06:47:45 EDT --- Created an attachment (id=320278) --> (https://bugzilla.redhat.com/attachment.cgi?id=320278) test code for output the same result regardless of the key
% gcc scim_repeat.c `pkg-config --cflags --libs gtk+-2.0 gio-2.0` % GTK_IM_MODULE=xim XMODIFIERS=@im=SCIM ./a.out
After pressing the button, "abc" should be put to the entry box. but actual result is "aaaaaa". this testing code is sending KeyPress and KeyRelease events for "a", "b" and "c". and usually GTK+ and other toolkits doesn't take any actions for KeyRelease event. thus, this means SCIM sends back the forward event for "a" with KeyPress 6 times.
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=466657
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #320277|0 |1 is obsolete| |
--- Comment #4 from Akira TAGOH tagoh@redhat.com 2008-10-15 05:05:18 EDT --- Created an attachment (id=320407) --> (https://bugzilla.redhat.com/attachment.cgi?id=320407) test code for discarding the key event issue
missed one ClientMessage event
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=466657
--- Comment #5 from Akira TAGOH tagoh@redhat.com 2008-10-15 07:18:44 EDT --- Created an attachment (id=320412) --> (https://bugzilla.redhat.com/attachment.cgi?id=320412) proposed patch
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=466657
Huang Peng shawn.p.huang@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #6 from Huang Peng shawn.p.huang@gmail.com 2008-10-15 22:35:45 EDT --- Fixed in scim-1.4.7-35.fc10. Thanks.
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=466657
Bug Zapper fedora-triage-list@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|rawhide |10
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution| |CURRENTRELEASE
--- Comment #7 from Bug Zapper fedora-triage-list@redhat.com 2008-11-25 22:48:04 EDT ---
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'.
More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
i18n-bugs@lists.fedoraproject.org