meta-weston-launch: Adapt to Clutter's new evdev open callback

This commit is contained in:
Jasper St. Pierre 2014-03-11 17:18:47 -04:00
parent b37ad66e9d
commit d1ea17e6a4

View File

@ -264,6 +264,13 @@ on_evdev_device_open (const char *path,
return meta_launcher_open_input_device (launcher, path, flags, error);
}
static void
on_evdev_device_close (int fd,
gpointer user_data)
{
close (fd);
}
static void
handle_vt_enter (MetaLauncher *launcher)
{
@ -380,7 +387,9 @@ meta_launcher_new (void)
g_source_attach (self->inner_source, self->nested_context);
g_source_unref (self->inner_source);
clutter_evdev_set_open_callback (on_evdev_device_open, self);
clutter_evdev_set_device_callbacks (on_evdev_device_open,
on_evdev_device_close,
self);
return self;
}