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
This commit is contained in:
Georges Basile Stavracas Neto 2020-08-27 10:08:34 -03:00 committed by Robert Mader
parent f69bb2097d
commit 7700dc904b

View File

@ -280,7 +280,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