screencast: No need to describe the cursor while it's outside the viewport

This commit is contained in:
Aleix Pol 2021-10-29 17:22:53 +02:00 committed by Aleix Pol Gonzalez
parent d054b12123
commit 76d53a0ce7

View file

@ -585,7 +585,7 @@ QRect PipeWireStream::cursorGeometry(Cursor *cursor) const
void PipeWireStream::sendCursorData(Cursor *cursor, spa_meta_cursor *spa_meta_cursor)
{
if (!cursor || !spa_meta_cursor) {
if (!cursor || !spa_meta_cursor || !m_cursor.viewport.contains(cursor->pos())) {
return;
}