Changeset View
Changeset View
Standalone View
Standalone View
src/screencast.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 45 | { | |||
---|---|---|---|---|---|
52 | qCDebug(XdgDesktopPortalKdeScreenCast) << " options: " << options; | 52 | qCDebug(XdgDesktopPortalKdeScreenCast) << " options: " << options; | ||
53 | 53 | | |||
54 | Session *session = Session::createSession(this, Session::ScreenCast, app_id, session_handle.path()); | 54 | Session *session = Session::createSession(this, Session::ScreenCast, app_id, session_handle.path()); | ||
55 | 55 | | |||
56 | if (!session) { | 56 | if (!session) { | ||
57 | return 2; | 57 | return 2; | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | connect(session, &Session::closed, [this] () { | 60 | connect(session, &Session::closed, [] () { | ||
61 | WaylandIntegration::stopStreaming(); | 61 | WaylandIntegration::stopAllStreaming(); | ||
62 | }); | 62 | }); | ||
63 | 63 | | |||
64 | return 0; | 64 | return 0; | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | uint ScreenCastPortal::SelectSources(const QDBusObjectPath &handle, | 67 | uint ScreenCastPortal::SelectSources(const QDBusObjectPath &handle, | ||
68 | const QDBusObjectPath &session_handle, | 68 | const QDBusObjectPath &session_handle, | ||
69 | const QString &app_id, | 69 | const QString &app_id, | ||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |