1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-15 15:24:24 +03:00

fix #172, disable hidpi scaling

--fix for hidpi screens based on plasma
official code
This commit is contained in:
Michail Vourlakos 2017-02-17 21:14:31 +02:00
parent 03fb457af6
commit f9797aa06c

View File

@ -63,6 +63,14 @@ int main(int argc, char **argv)
exit(0); // Exit, already a process running
}
// Devive pixel ratio has some problems in latte (plasmashell) currently.
// - dialog continually expands (347951)
// - Text element text is screwed (QTBUG-42606)
// - Panel struts (350614)
// This variable should possibly be removed when all are fixed
qunsetenv("QT_DEVICE_PIXEL_RATIO");
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
QQuickWindow::setDefaultAlphaBuffer(true);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("latte-dock");