Magellan Linux

Contents of /trunk/xorg-server/patches/xorg-server-1.4-fix-kbdleds.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1115 - (show annotations) (download)
Sun Aug 22 18:37:54 2010 UTC (13 years, 8 months ago) by niro
File size: 770 byte(s)
-added

1 From bug http://bugs.freedesktop.org/show_bug.cgi?id=12434
2
3 "It's a perfectly fine patch to put in distributions for the time being"
4 -- Daniel Stone, Comment #18
5
6 --- xorg-server-1.4/dix/devices.c.orig 2007-10-19 17:04:51.000000000 -0200
7 +++ xorg-server-1.4/dix/devices.c 2007-10-23 17:50:38.000000000 -0200
8 @@ -294,7 +294,17 @@ CoreKeyboardBell(int volume, DeviceIntPt
9 static void
10 CoreKeyboardCtl(DeviceIntPtr pDev, KeybdCtrl *ctrl)
11 {
12 +#ifdef XKB
13 + if (!noXkbExtension) {
14 + DeviceIntPtr dev = (DeviceIntPtr)
15 + pDev->devPrivates[CoreDevicePrivatesIndex].ptr;
16 +
17 + if (dev && dev->key && dev->key->xkbInfo && dev->key->xkbInfo->kbdProc)
18 + (*dev->key->xkbInfo->kbdProc)(dev, ctrl);
19 + }
20 +#else
21 return;
22 +#endif
23 }
24
25 /**