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:
parent
03fb457af6
commit
f9797aa06c
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user