From: Pekka Paalanen <[email protected]>

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 <[email protected]>
Signed-off-by: Pekka Paalanen <[email protected]>
---
 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

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to