[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-workspace/Plasma/5.8] ksmserver: Disable Qt's high DPI scaling on shutdown/switch user dialo
From:       David Edmundson <kde () davidedmundson ! co ! uk>
Date:       2016-11-22 10:32:57
Message-ID: E1c98Nl-0007qj-Mq () code ! kde ! org
[Download RAW message or body]

Git commit 4b2abc581c6b3e7a4c2f1f893d47fad5d3806aca by David Edmundson.
Committed on 22/11/2016 at 10:32.
Pushed by davidedmundson into branch 'Plasma/5.8'.

Disable Qt's high DPI scaling on shutdown/switch user dialogs

Summary:
They use Plasma's scaling, so in theory it should have absolutely no
effect.

In practice it has an effect of hitting a Qt bug with font rendering.

CCBUG: 366451

Test Plan: None done

Reviewers: #plasma, mart

Reviewed By: mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D3158

M  +1    -0    ksmserver/main.cpp

http://commits.kde.org/plasma-workspace/4b2abc581c6b3e7a4c2f1f893d47fad5d3806aca

diff --git a/ksmserver/main.cpp b/ksmserver/main.cpp
index eea441f..0ca3801 100644
--- a/ksmserver/main.cpp
+++ b/ksmserver/main.cpp
@@ -238,6 +238,7 @@ extern "C" Q_DECL_EXPORT int kdemain( int argc, char* argv[] )
     qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("xcb"));
 
     QQuickWindow::setDefaultAlphaBuffer(true);
+    QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
     QApplication *a = new QApplication(argc, argv);
 
     // now the QPA platform is set, unset variable again to not launch apps with incorrect environment
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic