[PATCH] libinput-seat: Don't regard no input devices as failure
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Sun Dec 28 14:25:16 PST 2014
The reason for not having any input devices could actually be that there
are no input devices attached, imagine that. Mention that cause in the
warning and no longer return an error.
This fixes starting weston on boards with no input devices attached.
Signed-off-by: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
---
src/libinput-seat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libinput-seat.c b/src/libinput-seat.c
index ef2d804..e8e872a 100644
--- a/src/libinput-seat.c
+++ b/src/libinput-seat.c
@@ -241,11 +241,11 @@ udev_input_enable(struct udev_input *input)
weston_log(
"warning: no input devices on entering Weston. "
"Possible causes:\n"
+ "\t- no input devices are attached\n"
"\t- no permissions to read /dev/input/event*\n"
"\t- seats misconfigured "
"(Weston backend option 'seat', "
"udev device property ID_SEAT)\n");
- return -1;
}
return 0;
--
2.1.4
More information about the wayland-devel
mailing list