Commit 29064f08 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii Committed by Vlad Zahorodnii
Browse files

screencast: Address minor issues

parent 5a73f4a3
......@@ -19,20 +19,22 @@
*/
#include "screencastmanager.h"
#include "scene.h"
#include "workspace.h"
#include "composite.h"
#include "platform.h"
#include "abstract_client.h"
#include "abstract_wayland_output.h"
#include "plugins/scenes/opengl/scene_opengl.h"
#include "composite.h"
#include "deleted.h"
#include "effects.h"
#include "kwingltexture.h"
#include "pipewirestream.h"
#include "platform.h"
#include "scene.h"
#include "wayland_server.h"
#include "workspace.h"
#include <KLocalizedString>
#include <KWaylandServer/display.h>
#include <KWaylandServer/output_interface.h>
#include <KLocalizedString>
#include <abstract_client.h>
#include <effects.h>
#include <deleted.h>
using namespace KWin;
......@@ -45,6 +47,7 @@ ScreencastManager::ScreencastManager(QObject *parent)
connect(m_screencast, &KWaylandServer::ScreencastInterface::outputScreencastRequested,
this, &ScreencastManager::streamOutput);
}
class EGLFence : public QObject
{
public:
......@@ -136,8 +139,8 @@ void ScreencastManager::streamWindow(KWaylandServer::ScreencastStreamInterface *
}
void ScreencastManager::streamOutput(KWaylandServer::ScreencastStreamInterface *waylandStream,
::wl_resource *outputResource,
KWaylandServer::ScreencastInterface::CursorMode mode)
::wl_resource *outputResource,
KWaylandServer::ScreencastInterface::CursorMode mode)
{
auto outputIface = KWaylandServer::OutputInterface::get(outputResource);
if (!outputIface) {
......
......@@ -21,27 +21,21 @@
#pragma once
#include "wayland_server.h"
#include <KWaylandServer/screencast_interface.h>
class PipeWireStream;
namespace KWin
{
class AbstractEglBackend;
}
class ScreencastManager
: public QObject
class ScreencastManager : public QObject
{
Q_OBJECT
public:
ScreencastManager(QObject *parent);
explicit ScreencastManager(QObject *parent = nullptr);
void streamWindow(KWaylandServer::ScreencastStreamInterface *stream, const QString &winid);
void streamOutput(KWaylandServer::ScreencastStreamInterface *stream,
::wl_resource *outputResource,
KWaylandServer::ScreencastInterface::CursorMode mode);
::wl_resource *outputResource,
KWaylandServer::ScreencastInterface::CursorMode mode);
private:
void integrateStreams(KWaylandServer::ScreencastStreamInterface *waylandStream, PipeWireStream *pipewireStream);
......
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