From 90112ef0cd6ed33f28b657f59d1cd3196077e955 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 26 Jan 2016 17:01:40 +0000 Subject: [PATCH] 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 --- main_x11.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main_x11.cpp b/main_x11.cpp index 2c137431b5..b2139e52e3 100644 --- a/main_x11.cpp +++ b/main_x11.cpp @@ -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();