Commit b46f565e authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[screencast] Fall back to monitor if no type is given

Otherwise we either 1) hit an assert or 2) don't enable any types

The spec says types defaults to monitor

BUG: 450206
(cherry picked from commit 2ba5e31a)
parent 19ef365c
Pipeline #137230 passed with stage
in 47 seconds
......@@ -169,6 +169,10 @@ void ScreenCastSession::setOptions(const QVariantMap &options)
m_multipleSources = options.value(QStringLiteral("multiple")).toBool();
m_cursorMode = ScreenCastPortal::CursorModes(options.value(QStringLiteral("cursor_mode")).toUInt());
m_types = ScreenCastPortal::SourceType(options.value(QStringLiteral("types")).toUInt());
if (m_types == 0) {
m_types = ScreenCastPortal::Monitor;
}
}
RemoteDesktopSession::RemoteDesktopSession(QObject *parent, const QString &appId, const QString &path)
......
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