Commit b3f32485 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

screencast: Switch to new outputScreencastRequested() signal

parent 790ddc09
......@@ -128,16 +128,10 @@ void ScreencastManager::streamWindow(KWaylandServer::ScreencastStreamInterface *
}
void ScreencastManager::streamOutput(KWaylandServer::ScreencastStreamInterface *waylandStream,
::wl_resource *outputResource,
KWaylandServer::OutputInterface *output,
KWaylandServer::ScreencastInterface::CursorMode mode)
{
auto outputIface = KWaylandServer::OutputInterface::get(outputResource);
if (!outputIface) {
waylandStream->sendFailed(i18n("Invalid output"));
return;
}
AbstractWaylandOutput *streamOutput = waylandServer()->findOutput(outputIface);
AbstractWaylandOutput *streamOutput = waylandServer()->findOutput(output);
if (!streamOutput) {
waylandStream->sendFailed(i18n("Could not find output"));
......
......@@ -24,7 +24,7 @@ public:
void streamWindow(KWaylandServer::ScreencastStreamInterface *stream, const QString &winid);
void streamOutput(KWaylandServer::ScreencastStreamInterface *stream,
::wl_resource *outputResource,
KWaylandServer::OutputInterface *output,
KWaylandServer::ScreencastInterface::CursorMode mode);
private:
......
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