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

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