mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:31:16 -07:00
Remove unused parts of pipewire backend
Direct wayland paths to start streams for windows and outputs became deprecated when xdg-portal support was added and this code is therefore unused. Creating virtual monitors via the direct approach remains in use.
This commit is contained in:
@@ -6,11 +6,10 @@
|
|||||||
|
|
||||||
#include "screencasting.h"
|
#include "screencasting.h"
|
||||||
#include "qwayland-zkde-screencast-unstable-v1.h"
|
#include "qwayland-zkde-screencast-unstable-v1.h"
|
||||||
#include <KWayland/Client/output.h>
|
|
||||||
#include <KWayland/Client/plasmawindowmanagement.h>
|
|
||||||
#include <KWayland/Client/registry.h>
|
#include <KWayland/Client/registry.h>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QRect>
|
#include <QRect>
|
||||||
|
#include <QPointer>
|
||||||
|
|
||||||
using namespace KWayland::Client;
|
using namespace KWayland::Client;
|
||||||
|
|
||||||
@@ -96,28 +95,6 @@ Screencasting::Screencasting(Registry *registry, int id, int version, QObject *p
|
|||||||
|
|
||||||
Screencasting::~Screencasting() = default;
|
Screencasting::~Screencasting() = default;
|
||||||
|
|
||||||
ScreencastingStream *Screencasting::createOutputStream(Output *output, CursorMode mode)
|
|
||||||
{
|
|
||||||
auto stream = new ScreencastingStream(this);
|
|
||||||
stream->setObjectName(output->model());
|
|
||||||
stream->d->init(d->stream_output(*output, mode));
|
|
||||||
return stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
ScreencastingStream *Screencasting::createWindowStream(PlasmaWindow *window, CursorMode mode)
|
|
||||||
{
|
|
||||||
auto stream = createWindowStream(QString::fromUtf8(window->uuid()), mode);
|
|
||||||
stream->setObjectName(window->appId());
|
|
||||||
return stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
ScreencastingStream *Screencasting::createWindowStream(const QString &uuid, CursorMode mode)
|
|
||||||
{
|
|
||||||
auto stream = new ScreencastingStream(this);
|
|
||||||
stream->d->init(d->stream_window(uuid, mode));
|
|
||||||
return stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
ScreencastingStream * Screencasting::createVirtualMonitorStream(const QString& name, const QSize& resolution, qreal dpr, Screencasting::CursorMode mode)
|
ScreencastingStream * Screencasting::createVirtualMonitorStream(const QString& name, const QSize& resolution, qreal dpr, Screencasting::CursorMode mode)
|
||||||
{
|
{
|
||||||
auto stream = new ScreencastingStream(this);
|
auto stream = new ScreencastingStream(this);
|
||||||
|
|||||||
@@ -60,9 +60,6 @@ public:
|
|||||||
};
|
};
|
||||||
Q_ENUM(CursorMode)
|
Q_ENUM(CursorMode)
|
||||||
|
|
||||||
ScreencastingStream *createOutputStream(KWayland::Client::Output *output, CursorMode mode);
|
|
||||||
ScreencastingStream *createWindowStream(KWayland::Client::PlasmaWindow *window, CursorMode mode);
|
|
||||||
ScreencastingStream *createWindowStream(const QString &uuid, CursorMode mode);
|
|
||||||
ScreencastingStream *createVirtualMonitorStream(const QString &name, const QSize &resolution, qreal dpr, CursorMode mode);
|
ScreencastingStream *createVirtualMonitorStream(const QString &name, const QSize &resolution, qreal dpr, CursorMode mode);
|
||||||
|
|
||||||
void setup(zkde_screencast_unstable_v1 *screencasting);
|
void setup(zkde_screencast_unstable_v1 *screencasting);
|
||||||
|
|||||||
Reference in New Issue
Block a user