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:
parent
9d57ecf23d
commit
90112ef0cd
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue