meta-weston-launch: Adapt to Clutter's new evdev open callback
This commit is contained in:
parent
b37ad66e9d
commit
d1ea17e6a4
@ -264,6 +264,13 @@ on_evdev_device_open (const char *path,
|
|||||||
return meta_launcher_open_input_device (launcher, path, flags, error);
|
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
|
static void
|
||||||
handle_vt_enter (MetaLauncher *launcher)
|
handle_vt_enter (MetaLauncher *launcher)
|
||||||
{
|
{
|
||||||
@ -380,7 +387,9 @@ meta_launcher_new (void)
|
|||||||
g_source_attach (self->inner_source, self->nested_context);
|
g_source_attach (self->inner_source, self->nested_context);
|
||||||
g_source_unref (self->inner_source);
|
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;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user