launcher: Collect launcher state in new struct weston_launcher
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 17 Sep 2013 21:41:03 +0000 (14:41 -0700)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 16 Nov 2013 20:54:07 +0000 (21:54 +0100)
We're going to add a bit more launcher state, so start out by creating
a new struct weston_launcher we can track it in.

src/udev-seat.c

index 4c051c9..4ef7ff3 100644 (file)
@@ -75,7 +75,7 @@ device_added(struct udev_device *udev_device, struct udev_input *input)
        /* Use non-blocking mode so that we can loop on read on
         * evdev_device_data() until all events on the fd are
         * read.  mtdev_get() also expects this. */
-       fd = weston_launcher_open(c, devnode, O_RDWR | O_NONBLOCK);
+       fd = weston_launcher_open(c->launcher, devnode, O_RDWR | O_NONBLOCK);
        if (fd < 0) {
                weston_log("opening input device '%s' failed.\n", devnode);
                return 0;