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:
parent
16f6473f56
commit
2fb485d67d
1 changed files with 0 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue