if (priv->main_seat->libinput_seat == NULL)
seat = priv->main_seat;
else
- seat = clutter_seat_evdev_new (manager_evdev);
+ {
+ seat = clutter_seat_evdev_new (manager_evdev);
+ priv->seats = g_slist_append (priv->seats, seat);
+ }
clutter_seat_evdev_set_libinput_seat (seat, libinput_seat);
- priv->seats = g_slist_append (priv->seats, seat);
}
device = _clutter_input_device_evdev_new (manager, seat, libinput_device);
return device;
}
- return clutter_seat_evdev_get_device (priv->main_seat, id);
+ return NULL;
}
static void
xkb_context_unref (ctx);
priv->main_seat = clutter_seat_evdev_new (manager_evdev);
+ priv->seats = g_slist_append (priv->seats, priv->main_seat);
dispatch_libinput (manager_evdev);
manager_evdev = CLUTTER_DEVICE_MANAGER_EVDEV (object);
priv = manager_evdev->priv;
- clutter_seat_evdev_free (priv->main_seat);
g_slist_free_full (priv->seats, (GDestroyNotify) clutter_seat_evdev_free);
g_slist_free (priv->devices);
priv->stage = stage;
/* Set the stage of any devices that don't already have a stage */
- clutter_seat_evdev_set_stage (priv->main_seat, stage);
-
for (l = priv->seats; l; l = l->next)
{
ClutterSeatEvdev *seat = l->data;
/* Remove the stage of any input devices that were pointing to this
stage so we don't send events to invalid stages */
- clutter_seat_evdev_set_stage (priv->main_seat, NULL);
-
for (l = priv->seats; l; l = l->next)
{
ClutterSeatEvdev *seat = l->data;