Commit 0f8c6c3a authored by David Edmundson's avatar David Edmundson Committed by Nate Graham

Fix KRunner positioning on X11 with High DPI and Qt scaling on Plasma

When using Qt scaling, we want to adois mising scaled and unscaled
geometry spaces, as this leads to poitioning issues.

BUG: 422578
FIXED-IN: 5.19.2
parent 8fda7346
......@@ -40,10 +40,12 @@
int main(int argc, char **argv)
{
qunsetenv("QT_DEVICE_PIXEL_RATIO");
QCommandLineParser parser;
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
if (!qEnvironmentVariableIsSet("PLASMA_USE_QT_SCALING")) {
qunsetenv("QT_DEVICE_PIXEL_RATIO");
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
}
const bool qpaVariable = qEnvironmentVariableIsSet("QT_QPA_PLATFORM");
KWorkSpace::detectPlatform(argc, argv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment