diff --git a/src/config.cpp b/src/config.cpp --- a/src/config.cpp +++ b/src/config.cpp @@ -222,6 +222,8 @@ } newConfig->d->primaryOutput = newConfig->d->findPrimaryOutput(); newConfig->setSupportedFeatures(supportedFeatures()); + newConfig->setTabletModeAvailable(tabletModeAvailable()); + newConfig->setTabletModeEngaged(tabletModeEngaged()); return newConfig; } diff --git a/src/configserializer.cpp b/src/configserializer.cpp --- a/src/configserializer.cpp +++ b/src/configserializer.cpp @@ -68,6 +68,9 @@ obj[QLatin1String("screen")] = serializeScreen(config->screen()); } + obj[QLatin1String("tabletModeAvailable")] = config->tabletModeAvailable(); + obj[QLatin1String("tabletModeEngaged")] = config->tabletModeEngaged(); + return obj; } @@ -183,6 +186,13 @@ config->setSupportedFeatures(static_cast(map[QStringLiteral("features")].toInt())); } + if (map.contains(QLatin1String("tabletModeAvailable"))) { + config->setTabletModeAvailable(map[QStringLiteral("tabletModeAvailable")].toBool()); + } + if (map.contains(QLatin1String("tabletModeEngaged"))) { + config->setTabletModeEngaged(map[QStringLiteral("tabletModeEngaged")].toBool()); + } + if (map.contains(QLatin1String("outputs"))) { const QDBusArgument &outputsArg = map[QStringLiteral("outputs")].value(); outputsArg.beginArray();