Changeset View
Changeset View
Standalone View
Standalone View
src/screencast.cpp
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | 120 | { | |||
---|---|---|---|---|---|
142 | if (!WaylandIntegration::isEGLInitialized()) { | 142 | if (!WaylandIntegration::isEGLInitialized()) { | ||
143 | qCWarning(XdgDesktopPortalKdeScreenCast) << "EGL is not properly initialized"; | 143 | qCWarning(XdgDesktopPortalKdeScreenCast) << "EGL is not properly initialized"; | ||
144 | return 2; | 144 | return 2; | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | QScopedPointer<ScreenChooserDialog, QScopedPointerDeleteLater> screenDialog(new ScreenChooserDialog(app_id, session->multipleSources())); | 147 | QScopedPointer<ScreenChooserDialog, QScopedPointerDeleteLater> screenDialog(new ScreenChooserDialog(app_id, session->multipleSources())); | ||
148 | Utils::setParentWindow(screenDialog.data(), parent_window); | 148 | Utils::setParentWindow(screenDialog.data(), parent_window); | ||
149 | 149 | | |||
150 | connect(session, &Session::closed, screenDialog.data(), &ScreenChooserDialog::reject); | ||||
151 | | ||||
150 | if (screenDialog->exec()) { | 152 | if (screenDialog->exec()) { | ||
151 | if (!WaylandIntegration::startStreaming(screenDialog->selectedScreens().first())) { | 153 | if (!WaylandIntegration::startStreaming(screenDialog->selectedScreens().first())) { | ||
152 | return 2; | 154 | return 2; | ||
153 | } | 155 | } | ||
154 | 156 | | |||
155 | QVariant streams = WaylandIntegration::streams(); | 157 | QVariant streams = WaylandIntegration::streams(); | ||
156 | 158 | | |||
157 | if (!streams.isValid()) { | 159 | if (!streams.isValid()) { | ||
Show All 11 Lines |