Fix bogus timestamp generated by XIM (https://bugs.freedesktop.org/show_bug.cgi?id=39367)

ishikawa ishikawa at yk.rim.or.jp
Tue Aug 6 21:43:22 PDT 2013


I posted a patch to fix the problem reported in the following bugzilla entry.

Bug 39367 - Summary: 	The returning event of XNextEvent() has
incorrect timestamp
[1] https://bugs.freedesktop.org/show_bug.cgi?id=39367

The Bug 39367 was filed in July 2011, but
my patch was posted in Dec 18, 2012.

I subsequently posted the final patch to xorg-devel mailing list.
It is recorded in the following:
[2] http://patchwork.freedesktop.org/patch/12686/

I wonder if someone can enlighten me to make this patch incorporated
into new bug-fix release of Xserver and its libraries.

Shall I file a different bugzilla report since the Bug 39367 seemed
to have been reviewed in 2011?

Or can someone point me to the right maintainer of the affected modules/files?

Background:

I think the lapse between the original report and my follow-up (which
I posted after I noticied the problem indepently of the original
report and found a fix)
did not help to make my follow-up patch report stand out as important.
(The original report had
this line in
" URL: 	Whiteboard: 	2011BRB_Reviewed "
and I am afraid that this bug discussion fell through the floor.
Obviously 2011 BRB whatever happened before my follow-up fix.

Also, although I posted the patch to xorg-devel at lists.x.org mailing list
the timing of the post near the holiday season toward the end of the
year 2012 may not have helped.

Over the last several months,
I have received inquiries from several people: the patch helped
them to solve the issues of non-working menu system in Mozilla
Thunderbird, and Firefox (which is confused to no end due to incorrect
timestamp generated by XIM module).
They wondered when this patch makes it into the next revision of Xorg
server.


The patch as it stands fixes a major issue for users of
thunderbird/firefox under linux who need to use "XIM input method" to
type non-ASCII, non-latin characters such as Chinese, Japanese, Korean
and others.

The problem that plagued these users is serious.

Simply put, the pull-down menus or context-menu (invoked by
right-button) no longer works if the bogus timestamp (created by
Xlib's XIM module, for example ) is recorded by some programs
including thunderbird, firefox, etc.  We have to kill the programs (or
worse re-start Xserver.)  With the patch, we can avoid the bogus
timestamp from Xlib.

Since the serious issue is solved by the patch, these people contacted
me to find out when the official release, which would be incorporated
into many linux distributions, will incorporate the patch.



TIA

Chiaki

PS: I looked at the list of maintainers and could not find relevant contact
if I am not mistaken.

I suspect that nobody suspected this 15 years old (or older?) code had a
dormant bug that plagues people today, and that is why there is no explicit
maintainer for XIM module :-(





More information about the xorg-devel mailing list