From 0692521fd4daa6807aa61af0b44374bb449352f7 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 17 Feb 2017 21:14:31 +0200 Subject: [PATCH] fix #172, disable hidpi scaling --fix for hidpi screens based on plasma official code --- app/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 2f3e21c1b..3c91c2144 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -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");