summaryrefslogtreecommitdiffstats
path: root/kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2018-08-12 22:11:58 +0200
committer Eric Hameleers <alien@slackware.com>2018-08-12 22:11:58 +0200
commit0dcd071e79365d621f75c9c4ca4ba38ade2dc389 (patch)
treef2522f1440864f96f09098c901945c83e5352c11 /kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch
parent6e33bf90d74269de6e201c6793b7fd6ea721d1cb (diff)
downloadktown-0dcd071e79365d621f75c9c4ca4ba38ade2dc389.tar.gz
ktown-0dcd071e79365d621f75c9c4ca4ba38ade2dc389.tar.xz
Backport two kscreenlocker patches from the 5.14 branch
- Force software rendering when greeter crashed: - Load QtQuickSettings for software rendering (KDEBUG #347772): In particular the second patch eliminates 100% CPU usage in the lockscreen in case you have older hardware and rely on software rendering. I think this warrants the backport into Slackware's Plasma5 Desktop.
Diffstat (limited to 'kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch')
-rw-r--r--kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch b/kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch
new file mode 100644
index 0000000..2802a1a
--- /dev/null
+++ b/kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch
@@ -0,0 +1,49 @@
+From 3f104cbb0a34024dc1aa45538d2ef2403a7a45f0 Mon Sep 17 00:00:00 2001
+From: David Edmundson <kde@davidedmundson.co.uk>
+Date: Fri, 10 Aug 2018 01:18:42 +0200
+Subject: Load QtQuickSettings for software rendering
+
+We had support for falling back on errors yet somehow
+the initial basic loading was missing.
+
+Summary: BUG: 347772
+
+Test Plan: Compiles
+
+Reviewers: #plasma, broulik
+
+Reviewed By: #plasma, broulik
+
+Subscribers: plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D14708
+---
+ greeter/main.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/greeter/main.cpp b/greeter/main.cpp
+index ff64a55..6db87e1 100644
+--- a/greeter/main.cpp
++++ b/greeter/main.cpp
+@@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *********************************************************************/
+ #include <KLocalizedString>
++#include <KQuickAddons/QtQuickSettings>
+
+ #include <QDateTime>
+ #include <QCommandLineParser>
+@@ -85,6 +86,8 @@ int main(int argc, char* argv[])
+ QCoreApplication::setApplicationVersion(QStringLiteral("0.1"));
+ QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
+
++ KQuickAddons::QtQuickSettings::init();
++
+ // disable session management for the greeter
+ auto disableSessionManagement = [](QSessionManager &sm) {
+ sm.setRestartHint(QSessionManager::RestartNever);
+--
+cgit v0.11.2
+