Use new Qt flag to disable high DPI scaling on X

This flag was set for main_wayland but not X.

BUG: 357896
REVIEW: 126810
icc-effect-5.14.5 v5.5.4
David Edmundson 2016-01-26 17:01:40 +00:00 committed by David Edmundson
parent 9d57ecf23d
commit 90112ef0cd
1 changed files with 3 additions and 0 deletions

View File

@ -269,6 +269,9 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
setenv("QT_QPA_PLATFORM", "xcb", true);
qunsetenv("QT_DEVICE_PIXEL_RATIO");
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
#endif
KWin::ApplicationX11 a(argc, argv);
a.setupTranslator();