Группа :: Графические оболочки/KDE
Пакет: sddm
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: alt-sddm-greeter-swbackend.patch
Скачать
Скачать
--- a/src/common/Configuration.h
+++ b/src/common/Configuration.h
@@ -42,6 +42,7 @@ namespace SDDM {
Entry(Numlock, NumState, NUM_NONE, _S("Initial NumLock state. Can be on, off or none.\n"
"If property is set to none, numlock won't be changed\n"
"NOTE: Currently ignored if autologin is enabled."));
+ Entry(SoftwareRenderer, bool, false, _S("Use software renderer for greeter"));
Entry(InputMethod, QString, QStringLiteral("qtvirtualkeyboard"), _S("Input method module"));
// Name Entries (but it's a regular class again)
Section(Theme,
--- a/src/greeter/GreeterApp.cpp
+++ b/src/greeter/GreeterApp.cpp
@@ -45,6 +45,8 @@
#include <QLibraryInfo>
#include <QVersionNumber>
#include <QSurfaceFormat>
+#include <QQuickWindow>
+#include <QSGRendererInterface>
#include <iostream>
@@ -56,6 +58,8 @@ namespace SDDM {
GreeterApp::GreeterApp(QObject *parent)
: QObject(parent)
{
+ if (SDDM::mainConfig.SoftwareRenderer.get())
+ QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software);
// Translations
// Components translation
m_components_tranlator = new QTranslator();