From 3425b16d521b8846b95df2b7d32a548d93341f3b Mon Sep 17 00:00:00 2001 From: marha Date: Sun, 14 Nov 2010 21:29:32 +0000 Subject: xserver pixman libX11 libXext 14/11/2010 --- xorg-server/config/hal.c | 6 +- xorg-server/config/udev.c | 7 +- xorg-server/config/x11-input.fdi | 191 +++++++++++++++++++-------------------- 3 files changed, 96 insertions(+), 108 deletions(-) (limited to 'xorg-server/config') diff --git a/xorg-server/config/hal.c b/xorg-server/config/hal.c index 5ce7d7d48..dab35ddf7 100644 --- a/xorg-server/config/hal.c +++ b/xorg-server/config/hal.c @@ -376,6 +376,7 @@ device_added(LibHalContext *hal_ctx, const char *udi) add_option(&options, "xkb_model", xkb_opts.model); if (xkb_opts.options) add_option(&options, "xkb_options", xkb_opts.options); + add_option(&options, "config_info", config_info); /* this isn't an error, but how else do you output something that the user can see? */ LogMessage(X_INFO, "config/hal: Adding input device %s\n", name); @@ -385,11 +386,6 @@ device_added(LibHalContext *hal_ctx, const char *udi) goto unwind; } - for (; dev; dev = dev->next){ - free(dev->config_info); - dev->config_info = strdup(config_info); - } - unwind: if (set) libhal_free_property_set(set); diff --git a/xorg-server/config/udev.c b/xorg-server/config/udev.c index 32f414137..88222bb01 100644 --- a/xorg-server/config/udev.c +++ b/xorg-server/config/udev.c @@ -181,17 +181,14 @@ device_added(struct udev_device *udev_device) } } + add_option(&options, "config_info", config_info); + LogMessage(X_INFO, "config/udev: Adding input device %s (%s)\n", name, path); rc = NewInputDeviceRequest(options, &attrs, &dev); if (rc != Success) goto unwind; - for (; dev; dev = dev->next) { - free(dev->config_info); - dev->config_info = strdup(config_info); - } - unwind: free(config_info); while (!dev && (tmpo = options)) { diff --git a/xorg-server/config/x11-input.fdi b/xorg-server/config/x11-input.fdi index 9e629cbd0..42489821d 100644 --- a/xorg-server/config/x11-input.fdi +++ b/xorg-server/config/x11-input.fdi @@ -1,98 +1,93 @@ - - - - - - - - mouse - - evdev - - - - usbms - VUID - - - - - - base - - - kbd - pc105 - - evdev - evdev - - - - usbkbm - VUID - - - - us - - - - - + + + + + + + + mouse + + evdev + + + + usbms + VUID + + + + + + base + + + kbd + pc105 + + evdev + evdev + + + + usbkbm + VUID + + + + us + + + + + -- cgit v1.2.3