From bd7f758ac983672e5d792f62e2b15c8c551dfcbc Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 15 Sep 2020 17:58:30 +0200 Subject: [PATCH] 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. --- screencast/screencastmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/screencast/screencastmanager.cpp b/screencast/screencastmanager.cpp index a5e9ba83b4..b5a2d70cc7 100644 --- a/screencast/screencastmanager.cpp +++ b/screencast/screencastmanager.cpp @@ -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(); }