From 2fb485d67d9473676d5a40a68821cc3a40d725cb Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 19 Jun 2024 12:40:04 +0300 Subject: [PATCH] plugins/screencast: Unset only cursor id when the cursor is invisible We are doing half a job of resetting spa_meta_cursor, the actual cursor content is still left as is. On the other hand, it should plenty enough to simply reset the cursor id. The clients are expected to call spa_meta_cursor_is_valid(). --- src/plugins/screencast/screencaststream.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp index 905d6a6b78..8a7bb2ab3e 100644 --- a/src/plugins/screencast/screencaststream.cpp +++ b/src/plugins/screencast/screencaststream.cpp @@ -714,11 +714,6 @@ void ScreenCastStream::addCursorMetadata(spa_buffer *spaBuffer, Cursor *cursor) if (!includesCursor(cursor)) { spaMetaCursor->id = 0; - spaMetaCursor->position.x = -1; - spaMetaCursor->position.y = -1; - spaMetaCursor->hotspot.x = -1; - spaMetaCursor->hotspot.y = -1; - spaMetaCursor->bitmap_offset = 0; m_cursor.visible = false; return; }