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().
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent 16f6473f56
commit 2fb485d67d
  1. 5
      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;
}

Loading…
Cancel
Save