1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00

Don't pass unused window ids around

The wid is only relevant for the xcb framebuffer

We can just query it there, no need to pass it around everywhere
This commit is contained in:
Nicolas Fella
2022-08-03 22:00:16 +02:00
parent 5173e7ff29
commit 4169a9f50a
16 changed files with 27 additions and 26 deletions

View File

@@ -30,11 +30,9 @@ PWFrameBufferPlugin::PWFrameBufferPlugin(QObject *parent, const QVariantList &ar
}
FrameBuffer *PWFrameBufferPlugin::frameBuffer(WId id, const QVariantMap &args)
FrameBuffer *PWFrameBufferPlugin::frameBuffer(const QVariantMap &args)
{
//NOTE WId is irrelevant in Wayland
auto pwfb = new PWFrameBuffer(id);
auto pwfb = new PWFrameBuffer;
if (args.contains(QLatin1String("name"))) {
pwfb->startVirtualMonitor(args[QStringLiteral("name")].toString(), args[QStringLiteral("resolution")].toSize(), args[QStringLiteral("scale")].toDouble());
} else {