[PATCH] NumLock/CapsLock masks in Thai XIM (round 2)
Theppitak Karoonboonyanan
thep at linux.thai.net
Tue Jul 22 00:24:11 PDT 2008
Hi,
I'd like to resume the review for my patch proposed to Bug #12517
(Thai XIM does not filter inputs when NumLock/CapsLock is on) [1]
[1] http://bugs.freedesktop.org/show_bug.cgi?id=12517
In the last round, I was suggested to check for NumLock modifier
with XkbGetVirtualMods, but it has not been successful so far on
my system (Debian unstable). It keeps returning BadAlloc, as if
XKB were not supported by the X server.
So, I have checked and traced some codes from NumLockX
package [2], and found that the call to a similar XKB function,
namely XkbGetKeyboard also fails. And the program only works
by XTEST fallback.
[2] http://ktown.kde.org/~seli/numlockx/
So, I borrow the fallback and come up with this patch instead.
--
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 021_Thai_xim_num_caps.diff
Type: text/x-patch
Size: 1161 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20080722/318d1903/attachment.bin>
More information about the xorg
mailing list