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().
This commit is contained in:
Vlad Zahorodnii 2024-06-19 12:40:04 +03:00
parent 16f6473f56
commit 2fb485d67d

View file

@ -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;
}