On Mon, Oct 26, 2009 at 2:33 PM, Dan Nicholson <dbn.li...@gmail.com> wrote: > > 3. I don't think printing a warning or returning a BadMatch is what > you want to do unless you want to spam people's logs. I would > personally do something like this: > > xf86Msg(X_INFO, "Device \"%s\" configured for ServerLayout \"%s\". > Skipping.\n", > idev->identifier, layout); > rval = Success; > goto unwind; > > Then the resources will be cleaned up and the hal layer won't complain > that things failed when they actually worked successfully to filter > the device.
For this to actually work, you'd have to do the handling in NewInputDeviceRequest instead of xf86NewInputDevice. The code should be the same, though. -- Dan _______________________________________________ xorg-devel mailing list xorg-devel@lists.x.org http://lists.x.org/mailman/listinfo/xorg-devel