Author: boiko
Date: Wed Feb 14 14:01:57 2007
New Revision: 120837

Added:
   
packages/cooker/x11-driver-input-keyboard/current/SOURCES/x11-driver-input-keyboard-leds_status.patch
   
packages/cooker/x11-driver-input-keyboard/current/SOURCES/xf86-input-keyboard-1.1.1.tar.bz2
   (contents, props changed)
Removed:
   
packages/cooker/x11-driver-input-keyboard/current/SOURCES/xf86-input-keyboard-1.2.0.tar.bz2
Modified:
   
packages/cooker/x11-driver-input-keyboard/current/SPECS/x11-driver-input-keyboard.spec

Log:
- 1.2.0 is not intended to be used in xserver 1.2.0, so rolling back to 1.1.1
- add a patch fixing the led status not being correctly updated (#13211)


Added: 
packages/cooker/x11-driver-input-keyboard/current/SOURCES/x11-driver-input-keyboard-leds_status.patch
==============================================================================
--- (empty file)
+++ 
packages/cooker/x11-driver-input-keyboard/current/SOURCES/x11-driver-input-keyboard-leds_status.patch
       Wed Feb 14 14:01:57 2007
@@ -0,0 +1,46 @@
+commit 05dd89ef03cee6853e7c2db518b6b22785cc3e7c
+Author: Samuel Thibault <[EMAIL PROTECTED]>
+Date:   Mon Feb 5 14:29:54 2007 -0800
+
+    Fix key led update
+    
+    Cf: https://bugs.freedesktop.org/show_bug.cgi?id=313
+        https://bugs.freedesktop.org/attachment.cgi?id=8396&action=view
+    
+     ------- Comment  #8 From Samuel Thibault  2007-01-14 14:28:16  [reply] 
-------
+    
+    Created an attachment (id=8396) [details]
+    fix key led update
+    
+    Ok, found the problem: when XKB is used (!pKbd->noXkb), pKbd->keyLeds is 
not
+    updated, so that UpdateLeds(), even if it called at the right places, 
actually
+    just clears all LEDs.  Here is a patch.
+
+diff --git a/src/kbd.c b/src/kbd.c
+index 7d402d5..24fe6f6 100644
+--- a/src/kbd.c
++++ b/src/kbd.c
+@@ -383,7 +383,22 @@ KbdCtrl( DeviceIntPtr device, KeybdCtrl *ctrl)
+    InputInfoPtr pInfo = (InputInfoPtr) device->public.devicePrivate;
+    KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
+ 
+-   if ( ctrl->leds & XCOMP ) {
++   if ( ctrl->leds & XLED1) {
++       pKbd->keyLeds |= CAPSFLAG;
++   } else {
++       pKbd->keyLeds &= ~CAPSFLAG;
++   }
++   if ( ctrl->leds & XLED2) {
++       pKbd->keyLeds |= NUMFLAG;
++   } else {
++       pKbd->keyLeds &= ~NUMFLAG;
++   }
++   if ( ctrl->leds & XLED3) {
++       pKbd->keyLeds |= SCROLLFLAG;
++   } else {
++       pKbd->keyLeds &= ~SCROLLFLAG;
++   }
++   if ( ctrl->leds & (XCOMP|XLED4) ) {
+        pKbd->keyLeds |= COMPOSEFLAG;
+    } else {
+        pKbd->keyLeds &= ~COMPOSEFLAG;

Added: 
packages/cooker/x11-driver-input-keyboard/current/SOURCES/xf86-input-keyboard-1.1.1.tar.bz2
==============================================================================
Binary file. No diff available.

Modified: 
packages/cooker/x11-driver-input-keyboard/current/SPECS/x11-driver-input-keyboard.spec
==============================================================================
--- 
packages/cooker/x11-driver-input-keyboard/current/SPECS/x11-driver-input-keyboard.spec
      (original)
+++ 
packages/cooker/x11-driver-input-keyboard/current/SPECS/x11-driver-input-keyboard.spec
      Wed Feb 14 14:01:57 2007
@@ -1,10 +1,11 @@
 Name: x11-driver-input-keyboard
-Version: 1.2.0
+Version: 1.1.1
 Release: %mkrel 1
 Summary: Xorg input driver for keyboards
 Group: System/X11
 URL: http://xorg.freedesktop.org
 Source: 
http://xorg.freedesktop.org/releases/individual/driver/xf86-input-keyboard-%{version}.tar.bz2
+Patch0: x11-driver-input-keyboard-leds_status.patch
 License: MIT
 BuildRoot: %{_tmppath}/%{name}-root
 
@@ -23,6 +24,7 @@
 
 %prep
 %setup -q -n xf86-input-keyboard-%{version}
+%patch0 -p1 -b .leds
 
 %build
 %configure2_5x --x-includes=%{_includedir}\

Reply via email to