Hello,

I apologise for my slowness but I'd like to add small patch to Xserver XKB code.
The thing is that the bug was already fixed long ago but then came back.
The problem was reported in Bugzilla #1566.  After some questions I found the
symptoms are wellknown for me and I had fixed the bug before 4.1.0.
Therefore I thought the reporter somehow got XFree based on some old release
or some Xorg's server where the patch was applied later.

But when I got similar complains in e-mail I decided to check sources and
found out that my patch was reverted completely becouse of compilation warnings
(signed-unsigned assignment without explicit cast).  Of course it's my fault
that the fix causes warnings but the reverting caused the bug came back.

New patch (attached) is more correct and should not harm something.

-- 
 Ivan U. Pascal         |   e-mail: [EMAIL PROTECTED]
   Administrator of     |   Tomsk State University
     University Network |       Tomsk, Russia
--- xc/programs/Xserver/xkb/xkbUtils.c.orig	28 Mar 2005 02:51:13 -0000	3.18
+++ xc/programs/Xserver/xkb/xkbUtils.c	6 Apr 2005 12:32:41 -0000
@@ -746,7 +746,7 @@
 
     grp= state->locked_group;
     if (grp>=ctrls->num_groups)
-	state->locked_group= XkbAdjustGroup(grp,ctrls);
+	state->locked_group= XkbAdjustGroup(XkbCharToInt(grp),ctrls);
 
     grp= state->locked_group+state->base_group+state->latched_group;
     if (grp>=ctrls->num_groups)

Reply via email to