Commit 23ac3434 authored by Jan Grulich's avatar Jan Grulich
Browse files

Screencast: add information about the source type which is being shared

parent d66be227
......@@ -45,6 +45,7 @@
#include <unistd.h>
#include "screencast.h"
#include "screencaststream.h"
#include <KWayland/Client/fakeinput.h>
......@@ -430,7 +431,10 @@ QVariant WaylandIntegration::WaylandIntegrationPrivate::streams()
Stream stream;
stream.nodeId = m_stream->nodeId(); = QVariantMap({{QLatin1String("size"), m_outputMap.value(m_output).resolution()}}); = 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});
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