[PATCH]: mtdev could be disabled at configuration
Pekka Paalanen
ppaalanen at gmail.com
Sun Jun 9 23:42:55 PDT 2013
On Fri, 7 Jun 2013 12:11:14 +0200
Marc Chalain <marc.chalain at gmail.com> wrote:
> mtdev is not necessary on some device (desktop or set-top-box). For
> embedded solution the minimum of dependencies is required. "configure"
> accepts the --disable-mtdev option.
Hi Marc,
with this patch, if weston is compiled with --disable-mtdev, it looks
like it will still happily open multitouch devices, expose them to
Wayland clients, and feed them garbage or fail or whatever. Right?
I think the proper approach is to change the configure option into
--disable-multitouch or --disable-touchscreen, which would not only
drop the dependency to mtdev, but also make Weston ignore all
touchscreen devices since it will not be able to handle them.
As the cherry on top, when a touchscreen device gets ignored during
input device detection, it would be nice to print a log message saying
it was ignored because touchscreen support was not built, instead of
the usual log message.
Also, there are not that many mtdev functions, so to minimize the
number of #ifdefs is the code, you could define no-op functions for a
few mtdev entry points when the real mtdev is not used.
Thanks,
pq
More information about the wayland-devel
mailing list