From 52e746dd39c064ed3615b7b5fd096429a7574ad6 Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 29 Jun 2021 01:55:27 +0800 Subject: [PATCH] Revert "Fix GDK scale environment variable" This reverts commit b5e4979e9f0a6e453da839e22f595ad5f937af4c. --- session/application.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/session/application.cpp b/session/application.cpp index 1fbfbd5..88934cd 100644 --- a/session/application.cpp +++ b/session/application.cpp @@ -208,11 +208,6 @@ void Application::initScreenScaleFactors() if (qFloor(scaleFactor) > 1) { qputenv("GDK_SCALE", QByteArray::number(scaleFactor, 'g', 0)); qputenv("GDK_DPI_SCALE", QByteArray::number(1.0 / scaleFactor, 'g', 3)); - } else { - // Reion: Why do we need to re-set ? - // Because the user is set to 2 and then log in, and then set to 1.25 or 1.5, - // it will also have an environment variable of 2. - qputenv("GDK_SCALE", "1"); } }