[mutter/gbsneto/fix-unset-cursor-metadata: 2/2] screen-cast-stream-src: Make cursor size a range




commit ec54fe3a3629d18e3114359ef71b1359b7788ca6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Aug 27 10:42:44 2020 -0300

    screen-cast-stream-src: Make cursor size a range
    
    So it allows the cursor size to be negotiated with clients properly.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1417

 src/backends/meta-screen-cast-stream-src.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c
index 0c07f6d8ba..16f88f2bf5 100644
--- a/src/backends/meta-screen-cast-stream-src.c
+++ b/src/backends/meta-screen-cast-stream-src.c
@@ -708,7 +708,9 @@ on_stream_param_changed (void                 *data,
     &pod_builder,
     SPA_TYPE_OBJECT_ParamMeta, SPA_PARAM_Meta,
     SPA_PARAM_META_type, SPA_POD_Id (SPA_META_Cursor),
-    SPA_PARAM_META_size, SPA_POD_Int (CURSOR_META_SIZE (384, 384)));
+    SPA_PARAM_META_size, SPA_POD_CHOICE_RANGE_Int (CURSOR_META_SIZE (64, 64),
+                                                   CURSOR_META_SIZE (1, 1),
+                                                   CURSOR_META_SIZE (384, 384)));
 
   pw_stream_update_params (priv->pipewire_stream, params, G_N_ELEMENTS (params));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]