summaryrefslogtreecommitdiff
path: root/hw/xfree86/utils/xorgcfg/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/utils/xorgcfg/interface.c')
-rw-r--r--hw/xfree86/utils/xorgcfg/interface.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/hw/xfree86/utils/xorgcfg/interface.c b/hw/xfree86/utils/xorgcfg/interface.c
index c8ffd005c..1feb5d040 100644
--- a/hw/xfree86/utils/xorgcfg/interface.c
+++ b/hw/xfree86/utils/xorgcfg/interface.c
@@ -795,7 +795,8 @@ InitializeDevices(void)
mouse_x = work->core.width - (work->core.width >> 2);
}
}
- else if (strcasecmp(input->inp_driver, "keyboard") == 0) {
+ else if ((strcasecmp(input->inp_driver, "keyboard") == 0) ||
+ (strcasecmp(input->inp_driver, "kbd") == 0)) {
device = AddDevice(KEYBOARD, (XtPointer)input, keyboard_x, keyboard_y);
SetTip(device);
if ((keyboard_x += DEFAULT_KEYBOARD_WIDTH) >
@@ -1644,8 +1645,9 @@ EnableDeviceCallback(Widget w, XtPointer user_data, XtPointer call_data)
while (nex != NULL) {
if (strcasecmp(nex->iref_inputdev->inp_driver, "mouse") == 0)
++nmouses;
- else if (strcasecmp(nex->iref_inputdev->inp_driver,
- "keyboard") == 0)
+ else if ((strcasecmp(nex->iref_inputdev->inp_driver,
+ "keyboard") == 0) ||
+ (!strcasecmp(nex->iref_inputdev->inp_driver, "kbd")))
++nkeyboards;
iref = nex;
nex = (XF86ConfInputrefPtr)(nex->list.next);