[mutter/gbsneto/fix-unset-cursor-metadata: 1/2] screen-cast-stream-src: Properly unset cursor metadata
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/fix-unset-cursor-metadata: 1/2] screen-cast-stream-src: Properly unset cursor metadata
- Date: Thu, 27 Aug 2020 13:44:21 +0000 (UTC)
commit 28b281126b39bd67c929e52e414e454510c8f3a5
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Aug 27 10:08:34 2020 -0300
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
src/backends/meta-screen-cast-stream-src.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c
index 1a90b01201..0c07f6d8ba 100644
--- a/src/backends/meta-screen-cast-stream-src.c
+++ b/src/backends/meta-screen-cast-stream-src.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]