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:
parent
a53100dd55
commit
38e656ba7e
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue