From a62ef07e9d7d71ada719e677d9b425e987f11041 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 10 Feb 2020 14:23:29 +0100 Subject: [PATCH] PW framebuffer: send correct type over DBus --- framebuffers/pipewire/pw_framebuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framebuffers/pipewire/pw_framebuffer.cpp b/framebuffers/pipewire/pw_framebuffer.cpp index 768fd8c7..ec99c445 100644 --- a/framebuffers/pipewire/pw_framebuffer.cpp +++ b/framebuffers/pipewire/pw_framebuffer.cpp @@ -260,7 +260,7 @@ void PWFrameBuffer::Private::handleSessionCreated(quint32 &code, QVariantMap &re // select sources for the session auto selectionOptions = QVariantMap { // We have to specify it's an uint, otherwise xdg-desktop-portal will not forward it to backend implementation - { QLatin1String("types"),QVariant::fromValue(7) }, // request all (KeyBoard, Pointer, TouchScreen) + { QLatin1String("types"), QVariant::fromValue(7) }, // request all (KeyBoard, Pointer, TouchScreen) #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) { QLatin1String("handle_token"), QStringLiteral("krfb%1").arg(QRandomGenerator::global()->generate()) } #else @@ -304,7 +304,7 @@ void PWFrameBuffer::Private::handleDevicesSelected(quint32 &code, QVariantMap &r // select sources for the session auto selectionOptions = QVariantMap { - { QLatin1String("types"), 1 }, // only MONITOR is supported + { QLatin1String("types"), QVariant::fromValue(1) }, // only MONITOR is supported { QLatin1String("multiple"), false }, #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) { QLatin1String("handle_token"), QStringLiteral("krfb%1").arg(QRandomGenerator::global()->generate()) }