From f096cc327d08d492ccfc45d0d6a8344a759083d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 7 May 2016 17:45:07 +0800 Subject: [PATCH] launcher: Expose KMS fd https://bugzilla.gnome.org/show_bug.cgi?id=768976 --- src/backends/native/meta-launcher.c | 9 +++++++++ src/backends/native/meta-launcher.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/backends/native/meta-launcher.c b/src/backends/native/meta-launcher.c index d9d7d8610..34e685af4 100644 --- a/src/backends/native/meta-launcher.c +++ b/src/backends/native/meta-launcher.c @@ -56,6 +56,8 @@ struct _MetaLauncher Login1Seat *seat_proxy; gboolean session_active; + + int kms_fd; }; static Login1Session * @@ -461,6 +463,7 @@ meta_launcher_new (GError **error) self->seat_proxy = g_object_ref (seat_proxy); self->session_active = TRUE; + self->kms_fd = kms_fd; clutter_egl_set_kms_fd (kms_fd); clutter_evdev_set_device_callbacks (on_evdev_device_open, @@ -502,3 +505,9 @@ meta_launcher_activate_vt (MetaLauncher *launcher, { return login1_seat_call_switch_to_sync (launcher->seat_proxy, vt, NULL, error); } + +int +meta_launcher_get_kms_fd (MetaLauncher *self) +{ + return self->kms_fd; +} diff --git a/src/backends/native/meta-launcher.h b/src/backends/native/meta-launcher.h index c8790a553..df4b0da6b 100644 --- a/src/backends/native/meta-launcher.h +++ b/src/backends/native/meta-launcher.h @@ -34,4 +34,6 @@ gboolean meta_launcher_activate_vt (MetaLauncher *self, signed char vt, GError **error); +int meta_launcher_get_kms_fd (MetaLauncher *self); + #endif /* META_LAUNCHER_H */