Commit 94d405d2 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

RemoteDesktop: Address how the startStreamingInput works

This is only necessary for RemoteDesktop sessions, so only ever call it
from there.
parent b7a6d509
......@@ -137,14 +137,13 @@ uint RemoteDesktopPortal::Start(const QDBusObjectPath &handle,
}
streams << stream;
}
WaylandIntegration::authenticate();
results.insert(QStringLiteral("streams"), QVariant::fromValue<WaylandIntegration::Streams>(streams));
} else {
qCWarning(XdgDesktopPortalKdeRemoteDesktop()) << "Only stream input";
WaylandIntegration::startStreamingInput();
WaylandIntegration::authenticate();
}
WaylandIntegration::startStreamingInput();
WaylandIntegration::authenticate();
results.insert(QStringLiteral("devices"), QVariant::fromValue<uint>(remoteDesktopDialog->deviceTypes()));
......
......@@ -338,7 +338,6 @@ WaylandIntegration::Stream WaylandIntegration::WaylandIntegrationPrivate::startS
ret.nodeId = nodeid;
ret.map = streamOptions;
m_streams.append(ret);
startStreamingInput();
connect(stream, &ScreencastingStream::closed, this, [this, nodeid] {
stopStreaming(nodeid);
......
Supports Markdown
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