[mutter/wip/login1: 3/7] meta-weston-launch: Adapt the new evdev open callback
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/login1: 3/7] meta-weston-launch: Adapt the new evdev open callback
- Date: Wed, 12 Mar 2014 13:59:25 +0000 (UTC)
commit 8fdeb17e609e179960a33cdf1427a8b732f5645f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Mar 11 17:18:47 2014 -0400
meta-weston-launch: Adapt the new evdev open callback
src/wayland/meta-weston-launch.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-weston-launch.c b/src/wayland/meta-weston-launch.c
index 624d951..563af20 100644
--- a/src/wayland/meta-weston-launch.c
+++ b/src/wayland/meta-weston-launch.c
@@ -241,6 +241,13 @@ on_evdev_device_open (const char *path,
}
static void
+on_evdev_device_close (int fd,
+ gpointer user_data)
+{
+ close (fd);
+}
+
+static void
handle_vt_enter (MetaLauncher *launcher)
{
g_assert (launcher->vt_switched);
@@ -356,7 +363,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_open_callback (on_evdev_device_open,
+ on_evdev_device_close,
+ self);
#if defined(CLUTTER_WINDOWING_EGL)
if (clutter_check_windowing_backend (CLUTTER_WINDOWING_EGL))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]