summary refs log tree commit diff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b71aa627..77e62381 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -109,6 +109,9 @@ main(int argc, char *argv[])
 
                 if (factor != -1)
                         qputenv("QT_SCALE_FACTOR", QString::number(factor).toUtf8());
+
+                if (factor == -1 || factor == 1)
+                        qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
         }
 #endif