diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2020-08-27 10:08:34 -0300 |
---|---|---|
committer | Robert Mader <robert.mader@posteo.de> | 2020-08-29 11:41:31 +0200 |
commit | ea5af9fa4622e6e37fd24833ee5d0ff9f3774864 (patch) | |
tree | 532f57f23ba85352fc354ad6870bbbbbbbc29d26 | |
parent | 1015dffc6a31b695fa5257713212fc20ff81c7b9 (diff) | |
download | mutter-ea5af9fa4622e6e37fd24833ee5d0ff9f3774864.tar.gz |
screen-cast-stream-src: Properly unset cursor metadata
As per PipeWire docs, 0 means "invalid cursor", however the function to
unset the cursor was setting it to 1, which means "this is totally set
and valid cursor". This is likely bad copy-paste from the function
immediately below introduced by 9be189daa728.
Fixes https://gitlab.gnome.org/GNOME/mutter/-/issues/1341
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1417
(cherry picked from commit 7700dc904bfc24c67e0e9a7260d6994308f76a4f)
-rw-r--r-- | src/backends/meta-screen-cast-stream-src.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c index fce2b84d3..7eb99f70d 100644 --- a/src/backends/meta-screen-cast-stream-src.c +++ b/src/backends/meta-screen-cast-stream-src.c @@ -286,7 +286,7 @@ void meta_screen_cast_stream_src_unset_cursor_metadata (MetaScreenCastStreamSrc *src, struct spa_meta_cursor *spa_meta_cursor) { - spa_meta_cursor->id = 1; + spa_meta_cursor->id = 0; } void |