kathenas / rpms / mutter

Forked from rpms/mutter 5 years ago
Clone

Blame SOURCES/0001-backend-Add-getter-for-MetaScreenCast.patch

99364f
From 967d8236d81c8689f2fe60621ec7e66d88b43dea Mon Sep 17 00:00:00 2001
99364f
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
99364f
Date: Wed, 17 Jun 2020 17:46:25 +0200
99364f
Subject: [PATCH 1/4] backend: Add getter for MetaScreenCast
99364f
99364f
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1318
99364f
---
99364f
 src/backends/meta-backend-private.h |  2 ++
99364f
 src/backends/meta-backend.c         | 11 +++++++++++
99364f
 2 files changed, 13 insertions(+)
99364f
99364f
diff --git a/src/backends/meta-backend-private.h b/src/backends/meta-backend-private.h
99364f
index 81ec81e5f1..77f4da77c4 100644
99364f
--- a/src/backends/meta-backend-private.h
99364f
+++ b/src/backends/meta-backend-private.h
99364f
@@ -138,6 +138,8 @@ MetaEgl * meta_backend_get_egl (MetaBackend *backend);
99364f
 
99364f
 #ifdef HAVE_REMOTE_DESKTOP
99364f
 MetaRemoteDesktop * meta_backend_get_remote_desktop (MetaBackend *backend);
99364f
+
99364f
+MetaScreenCast * meta_backend_get_screen_cast (MetaBackend *backend);
99364f
 #endif
99364f
 
99364f
 gboolean meta_backend_grab_device (MetaBackend *backend,
99364f
diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c
99364f
index 750a9248a8..b498b7aa44 100644
99364f
--- a/src/backends/meta-backend.c
99364f
+++ b/src/backends/meta-backend.c
99364f
@@ -965,6 +965,17 @@ meta_backend_get_remote_desktop (MetaBackend *backend)
99364f
 
99364f
   return priv->remote_desktop;
99364f
 }
99364f
+
99364f
+/**
99364f
+ * meta_backend_get_screen_cast: (skip)
99364f
+ */
99364f
+MetaScreenCast *
99364f
+meta_backend_get_screen_cast (MetaBackend *backend)
99364f
+{
99364f
+  MetaBackendPrivate *priv = meta_backend_get_instance_private (backend);
99364f
+
99364f
+  return priv->screen_cast;
99364f
+}
99364f
 #endif /* HAVE_REMOTE_DESKTOP */
99364f
 
99364f
 /**
99364f
-- 
99364f
2.26.2
99364f