Commit 4b2abc58 authored by David Edmundson's avatar David Edmundson

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
parent 7248a71a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment