diff --git a/0001-Set-QT_AUTO_SCREEN_SCALE_FACTOR-0-for-Qt-5.14-as-wel.patch b/0001-Set-QT_AUTO_SCREEN_SCALE_FACTOR-0-for-Qt-5.14-as-wel.patch new file mode 100644 index 0000000..0b861cb --- /dev/null +++ b/0001-Set-QT_AUTO_SCREEN_SCALE_FACTOR-0-for-Qt-5.14-as-wel.patch @@ -0,0 +1,31 @@ +From 73ffadbeda0e27689c995aa1576e1f773a329cc8 Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +Date: Sat, 11 Jan 2020 17:19:50 +0100 +Subject: [PATCH] Set QT_AUTO_SCREEN_SCALE_FACTOR=0 for Qt >= 5.14 as well + +It behaves differently than expected, so this is still needed. + +https://bugs.kde.org/show_bug.cgi?id=415421 +--- + startkde/startplasma.cpp | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp +index ffb67ffb2..5cc9ea1b3 100644 +--- a/startkde/startplasma.cpp ++++ b/startkde/startplasma.cpp +@@ -218,11 +218,9 @@ void runEnvironmentScripts() + + void setupPlasmaEnvironment() + { +-#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) + //Manually disable auto scaling because we are scaling above + //otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us + qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "0"); +-#endif + + qputenv("KDE_FULL_SESSION", "true"); + qputenv("KDE_SESSION_VERSION", "5"); +-- +2.23.0 + diff --git a/plasma5-workspace.changes b/plasma5-workspace.changes index 5e2f58a..ba124eb 100644 --- a/plasma5-workspace.changes +++ b/plasma5-workspace.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 14 12:10:11 UTC 2020 - Fabian Vogt + +- Add patch to fix/workaround scaling issues Qt 5.14.0 (kde#415421, boo#1160624): + * 0001-Set-QT_AUTO_SCREEN_SCALE_FACTOR-0-for-Qt-5.14-as-wel.patch + ------------------------------------------------------------------- Tue Jan 7 16:24:37 UTC 2020 - Fabian Vogt diff --git a/plasma5-workspace.spec b/plasma5-workspace.spec index dcfc4a0..ad83c18 100644 --- a/plasma5-workspace.spec +++ b/plasma5-workspace.spec @@ -50,6 +50,7 @@ Patch504: 0001-Add-suffix-to-the-wayland-session-s-name.patch Patch506: 0001-Revert-No-icons-on-the-desktop-by-default.patch # PATCH-FIX-OPENSUSE Patch507: lazy-sddm-theme.patch +Patch508: 0001-Set-QT_AUTO_SCREEN_SCALE_FACTOR-0-for-Qt-5.14-as-wel.patch BuildRequires: breeze5-icons BuildRequires: fdupes BuildRequires: kf5-filesystem