[PATCH] kdrive: set the pointer to the xkb desc info.

Peter Hutterer peter.hutterer at who-t.net
Sun Sep 6 23:08:54 PDT 2009


InitKeyboardDeviceStruct initialised dev->xkbInfo->desc which is somehow
used by kdrive but was never initialized.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 hw/kdrive/src/kinput.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
index 318d233..3cc4adc 100644
--- a/hw/kdrive/src/kinput.c
+++ b/hw/kdrive/src/kinput.c
@@ -765,6 +765,7 @@ KdKeyboardProc(DeviceIntPtr pDevice, int onoff)
         AssignTypeAndName(pDevice, xiclass,
                           ki->name ? ki->name : "Generic KDrive Keyboard");
 
+        ki->xkb = pDevice->key->xkbInfo->desc;
         KdResetInputMachine();
 
         return Success;
-- 
1.6.3.rc1.2.g0164.dirty


More information about the xorg-devel mailing list