[PATCH] Support filtering of hotplugged input devices

Dan Nicholson dbn.lists at gmail.com
Tue Oct 27 09:28:57 PDT 2009

On Mon, Oct 26, 2009 at 2:33 PM, Dan Nicholson <dbn.lists at 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.


More information about the xorg-devel mailing list