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
This commit is contained in:
David Edmundson 2016-01-26 17:01:40 +00:00 committed by David Edmundson
parent 9d57ecf23d
commit 90112ef0cd

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();