From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9FBA015ACFB for ; Sun, 9 Apr 2023 22:43:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4E89E085D; Sun, 9 Apr 2023 22:43:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3990E085D for ; Sun, 9 Apr 2023 22:43:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 705D9341036 for ; Sun, 9 Apr 2023 22:43:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B79FFA37 for ; Sun, 9 Apr 2023 22:43:09 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1681079661.5c63907316d26abc7a8e5e7eafb8688bc4f34ac7.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreen/, kde-plasma/kscreen/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-plasma/kscreen/files/kscreen-5.27.4-kcm-notify-changes-when-global-scale-changes.patch kde-plasma/kscreen/kscreen-5.27.4-r1.ebuild X-VCS-Directories: kde-plasma/kscreen/files/ kde-plasma/kscreen/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 5c63907316d26abc7a8e5e7eafb8688bc4f34ac7 X-VCS-Branch: master Date: Sun, 9 Apr 2023 22:43:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cd9b10fa-003b-43d1-9cf8-85fad022f1af X-Archives-Hash: c3afe5e673646a6dbeec196f37b1963f commit: 5c63907316d26abc7a8e5e7eafb8688bc4f34ac7 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Apr 9 22:05:05 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Apr 9 22:34:21 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c639073 kde-plasma/kscreen: kcm: notify global scale changes in kcmfonts KDE-bug: https://bugs.kde.org/show_bug.cgi?id=468203 Signed-off-by: Andreas Sturmlechner gentoo.org> ...-notify-changes-when-global-scale-changes.patch | 37 ++++++++++++++++ kde-plasma/kscreen/kscreen-5.27.4-r1.ebuild | 51 ++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/kde-plasma/kscreen/files/kscreen-5.27.4-kcm-notify-changes-when-global-scale-changes.patch b/kde-plasma/kscreen/files/kscreen-5.27.4-kcm-notify-changes-when-global-scale-changes.patch new file mode 100644 index 000000000000..9c1e862ff480 --- /dev/null +++ b/kde-plasma/kscreen/files/kscreen-5.27.4-kcm-notify-changes-when-global-scale-changes.patch @@ -0,0 +1,37 @@ +From e9384150d8e41dd9c869f5f502e02c70a5c6f002 Mon Sep 17 00:00:00 2001 +From: Fushan Wen +Date: Sat, 8 Apr 2023 00:33:24 +0800 +Subject: [PATCH] kcm: notify changes in kcmfonts when global scale changes + +Otherwise kde-gtk-config will use the old font DPI value. + +CCBUG: 468203 +--- + kcm/kcm.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp +index 6d96625d..f292699c 100644 +--- a/kcm/kcm.cpp ++++ b/kcm/kcm.cpp +@@ -438,7 +438,7 @@ void KCMKScreen::exportGlobalScale() + loadProc.waitForFinished(); + } + } +- fontConfigGroup.writeEntry("forceFontDPI", 0); ++ fontConfigGroup.writeEntry("forceFontDPI", 0, KConfig::Notify); + } else { + const int scaleDpi = qRound(globalScale() * 96.0); + QProcess proc; +@@ -448,7 +448,7 @@ void KCMKScreen::exportGlobalScale() + proc.closeWriteChannel(); + proc.waitForFinished(); + } +- fontConfigGroup.writeEntry("forceFontDPI", scaleDpi); ++ fontConfigGroup.writeEntry("forceFontDPI", scaleDpi, KConfig::Notify); + } + + Q_EMIT globalScaleWritten(); +-- +GitLab + diff --git a/kde-plasma/kscreen/kscreen-5.27.4-r1.ebuild b/kde-plasma/kscreen/kscreen-5.27.4-r1.ebuild new file mode 100644 index 000000000000..efbf3dea06d4 --- /dev/null +++ b/kde-plasma/kscreen/kscreen-5.27.4-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_TEST="forceoptional" +KFMIN=5.102.0 +PVCUT=$(ver_cut 1-3) +QTMIN=5.15.7 +inherit ecm plasma.kde.org + +DESCRIPTION="KDE Plasma screen management" +HOMEPAGE="https://invent.kde.org/plasma/kscreen" + +LICENSE="GPL-2" # TODO: CHECK +SLOT="5" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="" + +# bug #580440, last checked 5.6.3 +RESTRICT="test" + +DEPEND=" + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5[widgets] + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtsensors-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-frameworks/kcmutils-${KFMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kdeclarative-${KFMIN}:5 + >=kde-frameworks/kdbusaddons-${KFMIN}:5 + >=kde-frameworks/kglobalaccel-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kiconthemes-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=kde-frameworks/kxmlgui-${KFMIN}:5 + >=kde-frameworks/plasma-${KFMIN}:5 + >=kde-plasma/layer-shell-qt-${PVCUT}:5 + >=kde-plasma/libkscreen-${PVCUT}:5 + x11-libs/libX11 +" +RDEPEND="${DEPEND} + >=dev-qt/qtgraphicaleffects-${QTMIN}:5 + >=kde-plasma/kde-cli-tools-${PVCUT}:5 +" +BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:5" + +PATCHES=( "${FILESDIR}/${P}-kcm-notify-changes-when-global-scale-changes.patch" ) # KDE-bug 468203