Commit 77fac5c0 authored by Jan Grulich's avatar Jan Grulich
Browse files

Merge branch 'Plasma/5.19'

parents ab81c2ea 23ac3434
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <unistd.h> #include <unistd.h>
#if HAVE_PIPEWIRE_SUPPORT #if HAVE_PIPEWIRE_SUPPORT
#include "screencast.h"
#include "screencaststream.h" #include "screencaststream.h"
#include <KWayland/Client/fakeinput.h> #include <KWayland/Client/fakeinput.h>
...@@ -430,7 +431,10 @@ QVariant WaylandIntegration::WaylandIntegrationPrivate::streams() ...@@ -430,7 +431,10 @@ QVariant WaylandIntegration::WaylandIntegrationPrivate::streams()
{ {
Stream stream; Stream stream;
stream.nodeId = m_stream->nodeId(); stream.nodeId = m_stream->nodeId();
stream.map = QVariantMap({{QLatin1String("size"), m_outputMap.value(m_output).resolution()}}); stream.map = QVariantMap({{QLatin1String("size"), m_outputMap.value(m_output).resolution()},
// FIXME: We currently support only screen sharing. This will need to be
// changed based on the source type once window sharing is supported
{QLatin1String("source_type"), static_cast<uint>(ScreenCastPortal::Monitor)}});
return QVariant::fromValue<WaylandIntegrationPrivate::Streams>({stream}); return QVariant::fromValue<WaylandIntegrationPrivate::Streams>({stream});
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment