Add temporary fix for LEDs. Proper fix will be available in next

xorg-server release but this one has been deemed good enough for now.

Obtained from:	fd.o bugzilla
This commit is contained in:
Florent Thoumie 2007-10-29 14:04:27 +00:00
parent 1b3455b692
commit 88e6e25580
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202292
2 changed files with 21 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= xorg-server
PORTVERSION= 1.4
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= x11-servers
MASTER_SITES= http://xorg.freedesktop.org/releases/individual/xserver/:fdo \

View File

@ -0,0 +1,20 @@
--- dix/devices.c.orig 2007-10-19 17:04:51.000000000 -0200
+++ dix/devices.c 2007-10-23 17:50:38.000000000 -0200
@@ -294,7 +294,17 @@ CoreKeyboardBell(int volume, DeviceIntPt
static void
CoreKeyboardCtl(DeviceIntPtr pDev, KeybdCtrl *ctrl)
{
+#ifdef XKB
+ if (!noXkbExtension) {
+ DeviceIntPtr dev = (DeviceIntPtr)
+ pDev->devPrivates[CoreDevicePrivatesIndex].ptr;
+
+ if (dev && dev->key && dev->key->xkbInfo && dev->key->xkbInfo->kbdProc)
+ (*dev->key->xkbInfo->kbdProc)(dev, ctrl);
+ }
+#else
return;
+#endif
}
/**