summaryrefslogtreecommitdiff
path: root/recipes/xorg-xserver/xserver-kdrive-1.5.3/keyboard_device.patch
blob: dcb9eb01a5b49c03a576466671c9b8a74c99bb62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/hw/kdrive/src/kinput.c	2010-06-03 19:03:41.000000000 +0400
+++ b/hw/kdrive/src/kinput.c	2010-06-03 19:08:26.000000000 +0400
@@ -1174,10 +1174,11 @@
             ki->xkbVariant = option->value;
         else if (strcasecmp(option->key, "XkbOptions") == 0)
             ki->xkbOptions = option->value;
-        else if (!strcasecmp (option->key, "device"))
-            ki->path = KdSaveString(option->value);
         else
 #endif
+        if (!strcasecmp (option->key, "device"))
+            ki->path = KdSaveString(option->value);
+        else
            ErrorF("Kbd option key (%s) of value (%s) not assigned!\n", 
                     option->key, option->value);
     }