[PATCH weston 3/4] rpi: seat quick fix

ppaalanen at gmail.com ppaalanen at gmail.com
Wed Dec 4 05:34:47 PST 2013


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Fix the default seat name, so that we can find the input devices by
default.

This is just a quick fix. Further enhancement would be to make the
default seat on rpi taken from a command line option like the other
backends do. Furthermore, udev_input_init() should accept NULL as seat
to use the default seat, avoiding us hardcoding "seat0" all over.

Cc: Jonas Ådahl <jadahl at gmail.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 src/compositor-rpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor-rpi.c b/src/compositor-rpi.c
index c3dda2e..7d95e83 100644
--- a/src/compositor-rpi.c
+++ b/src/compositor-rpi.c
@@ -513,7 +513,7 @@ rpi_compositor_create(struct wl_display *display, int *argc, char *argv[],
 
 	if (udev_input_init(&compositor->input,
 			    &compositor->base,
-			    compositor->udev, "ID_SEAT") != 0) {
+			    compositor->udev, "seat0") != 0) {
 		weston_log("Failed to initialize udev input.\n");
 		goto out_udev;
 	}
-- 
1.8.3.2



More information about the wayland-devel mailing list