screencast: Properly report the initial size of windowed streams

Otherwise we'll be triggering a resize request first thing and never
hear back from the stream until a new frame is requested (which is often
rare when looking at a thumbnail).

BUG: 428594
This commit is contained in:
Aleix Pol 2021-01-22 19:11:27 +01:00 committed by Aleix Pol Gonzalez
parent a53100dd55
commit 38e656ba7e

View file

@ -41,7 +41,7 @@ class WindowStream : public PipeWireStream
{
public:
WindowStream(Toplevel *toplevel, QObject *parent)
: PipeWireStream(toplevel->hasAlpha(), toplevel->clientSize() * toplevel->bufferScale(), parent)
: PipeWireStream(toplevel->hasAlpha(), toplevel->bufferGeometry().size() * toplevel->bufferScale(), parent)
, m_toplevel(toplevel)
{
if (AbstractClient *client = qobject_cast<AbstractClient *>(toplevel)) {