input: Add a seat name parameter to weston_seat_init
diff --git a/src/input.c b/src/input.c
index 89f74f4..ae75054 100644
--- a/src/input.c
+++ b/src/input.c
@@ -1466,7 +1466,8 @@
}
WL_EXPORT void
-weston_seat_init(struct weston_seat *seat, struct weston_compositor *ec)
+weston_seat_init(struct weston_seat *seat, struct weston_compositor *ec,
+ const char *seat_name)
{
memset(seat, 0, sizeof *seat);
@@ -1482,6 +1483,7 @@
seat->compositor = ec;
seat->modifier_state = 0;
seat->num_tp = 0;
+ seat->seat_name = strdup(seat_name);
wl_list_insert(ec->seat_list.prev, &seat->link);
@@ -1507,5 +1509,7 @@
if (seat->touch)
weston_touch_destroy(seat->touch);
+ free (seat->seat_name);
+
wl_signal_emit(&seat->destroy_signal, seat);
}