screencasting: Mark the stream as dirty from the start

Otherwise we detect the stream as clean and skip sending anything,
ending up waiting for the window to issue some damage.
This commit is contained in:
Aleix Pol 2020-09-15 17:58:30 +02:00 committed by Aleix Pol Gonzalez
parent 651b0df30c
commit bd7f758ac9

View file

@ -86,6 +86,7 @@ private:
connect(scene, &Scene::frameRendered, this, &WindowStream::bufferToStream);
connect(m_toplevel, &Toplevel::damaged, this, &WindowStream::includeDamage);
m_damagedRegion = m_toplevel->visibleRect();
m_toplevel->addRepaintFull();
}