evdev: warn about missing input devices
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 5 Jan 2012 14:41:21 +0000 (16:41 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Thu, 5 Jan 2012 14:50:00 +0000 (16:50 +0200)
commitb07876d23a929faa5c61d9180810fedc0fcaeb51
tree90c07263aa006d7dbfcb7e5b97f42a56a05985f1
parentc0444e3ad69728ea0792234d60550f77d8820f2e
evdev: warn about missing input devices

Usually there should be at least one input device, when Weston starts
up, or is reactivated by a VT switch. Add a nice warning, in case there
are no input devices.

This is to give a clue to users who happen to try Weston on DRM, and
do not get any response.

Add also a message to another failure case, that may lead to missing
input devices.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/evdev.c