Add configuration option for no input device.
authorDaniel Díaz <daniel.diaz@linaro.org>
Fri, 21 Oct 2016 19:03:13 +0000 (14:03 -0500)
committerDaniel Stone <daniels@collabora.com>
Sat, 22 Oct 2016 14:04:58 +0000 (15:04 +0100)
commit75b7197f4e072a4e2de124ddbe93b85cffb1c0f8
tree08d2251df51200eeb39f2e7873bf914782f2396d
parent2dae4d0110a1e3699f0e99ca0e6a6a6904842253
Add configuration option for no input device.

As it has been discussed in the past [1], running Weston
without any input device at launch might be beneficial for
some use cases.

Certainly, it's best for the vast majority of users (and
the project) to require an input device to be present, as
to avoid frustration and hassle, but for those brave souls
that so prefer, this patch lets them run without any input
device at all.

This introduces a simple configuration in weston.ini:
  [core]
  require-input=true

True is the default, so no behavioral change is introduced.

[1] https://lists.freedesktop.org/archives/wayland-devel/2015-November/025193.html

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
compositor/main.c
libweston/compositor.h
libweston/libinput-seat.c
man/weston.ini.man
weston.ini.in