| |
@@ -0,0 +1,82 @@
|
| |
+ From f559afd237ea9779461b19ed706dda79c4587d5c Mon Sep 17 00:00:00 2001
|
| |
+ From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
|
| |
+ Date: Wed, 27 Feb 2019 16:42:24 +0100
|
| |
+ Subject: [PATCH 1/2] gnomescreencast: Make signals array static
|
| |
+
|
| |
+ ---
|
| |
+ src/gnomescreencast.c | 2 +-
|
| |
+ 1 file changed, 1 insertion(+), 1 deletion(-)
|
| |
+
|
| |
+ diff --git a/src/gnomescreencast.c b/src/gnomescreencast.c
|
| |
+ index fa8548b..3b3e8e4 100644
|
| |
+ --- a/src/gnomescreencast.c
|
| |
+ +++ b/src/gnomescreencast.c
|
| |
+ @@ -51,7 +51,7 @@ enum
|
| |
+ N_SIGNALS
|
| |
+ };
|
| |
+
|
| |
+ -guint signals[N_SIGNALS];
|
| |
+ +static guint signals[N_SIGNALS];
|
| |
+
|
| |
+ typedef struct _GnomeScreenCastStream
|
| |
+ {
|
| |
+ --
|
| |
+ 2.20.1
|
| |
+
|
| |
+
|
| |
+ From 7bee9d8d2b591773ed2d61d3087080f38f53330e Mon Sep 17 00:00:00 2001
|
| |
+ From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
|
| |
+ Date: Wed, 27 Feb 2019 16:47:21 +0100
|
| |
+ Subject: [PATCH 2/2] gnomescreencast: Bump supported API version
|
| |
+
|
| |
+ Mutter bumped the version when it added the window recording and cursor
|
| |
+ modes, so we need to bump the version we support to be compatible.
|
| |
+ ---
|
| |
+ src/gnomescreencast.c | 9 +++++----
|
| |
+ 1 file changed, 5 insertions(+), 4 deletions(-)
|
| |
+
|
| |
+ diff --git a/src/gnomescreencast.c b/src/gnomescreencast.c
|
| |
+ index 3b3e8e4..f5ed486 100644
|
| |
+ --- a/src/gnomescreencast.c
|
| |
+ +++ b/src/gnomescreencast.c
|
| |
+ @@ -22,7 +22,7 @@
|
| |
+
|
| |
+ #include <stdint.h>
|
| |
+
|
| |
+ -#define SUPPORTED_MUTTER_SCREEN_CAST_API_VERSION 1
|
| |
+ +#define SUPPORTED_MUTTER_SCREEN_CAST_API_VERSION 2
|
| |
+
|
| |
+ enum
|
| |
+ {
|
| |
+ @@ -99,6 +99,8 @@ typedef struct _GnomeScreenCast
|
| |
+ {
|
| |
+ GObject parent;
|
| |
+
|
| |
+ + int api_version;
|
| |
+ +
|
| |
+ guint screen_cast_name_watch;
|
| |
+ OrgGnomeMutterScreenCast *proxy;
|
| |
+ } GnomeScreenCast;
|
| |
+ @@ -487,7 +489,6 @@ gnome_screen_cast_name_appeared (GDBusConnection *connection,
|
| |
+ {
|
| |
+ GnomeScreenCast *gnome_screen_cast = user_data;
|
| |
+ g_autoptr(GError) error = NULL;
|
| |
+ - int api_version;
|
| |
+
|
| |
+ gnome_screen_cast->proxy =
|
| |
+ org_gnome_mutter_screen_cast_proxy_new_sync (connection,
|
| |
+ @@ -503,9 +504,9 @@ gnome_screen_cast_name_appeared (GDBusConnection *connection,
|
| |
+ return;
|
| |
+ }
|
| |
+
|
| |
+ - api_version =
|
| |
+ + gnome_screen_cast->api_version =
|
| |
+ org_gnome_mutter_screen_cast_get_version (gnome_screen_cast->proxy);
|
| |
+ - if (api_version != SUPPORTED_MUTTER_SCREEN_CAST_API_VERSION)
|
| |
+ + if (gnome_screen_cast->api_version > SUPPORTED_MUTTER_SCREEN_CAST_API_VERSION)
|
| |
+ {
|
| |
+ g_warning ("org.gnome.Mutter.ScreenCast API version not compatible");
|
| |
+ g_clear_object (&gnome_screen_cast->proxy);
|
| |
+ --
|
| |
+ 2.20.1
|
| |
+
|
| |
This is needed to make the screen cast portal work with GNOME 3.32.