[mutter] launcher: Expose KMS fd
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] launcher: Expose KMS fd
- Date: Wed, 20 Jul 2016 06:26:02 +0000 (UTC)
commit f096cc327d08d492ccfc45d0d6a8344a759083d5
Author: Jonas Ådahl <jadahl gmail com>
Date: Sat May 7 17:45:07 2016 +0800
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(+), 0 deletions(-)
---
diff --git a/src/backends/native/meta-launcher.c b/src/backends/native/meta-launcher.c
index d9d7d86..34e685a 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 c8790a5..df4b0da 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]