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 87905158094 for ; Mon, 10 Oct 2022 12:23:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8522FE0844; Mon, 10 Oct 2022 12:23:07 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 62D3EE0844 for ; Mon, 10 Oct 2022 12:23:07 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 801BA340CD2 for ; Mon, 10 Oct 2022 12:23:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0BDB25F7 for ; Mon, 10 Oct 2022 12:23:05 +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: <1665404575.f978945a3ed1c5f29ea627e1fe8b6144438f1c9c.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-desktop/, kde-plasma/plasma-desktop/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-plasma/plasma-desktop/files/plasma-desktop-5.25.5-folderview-fix-grid-overflow-property.patch kde-plasma/plasma-desktop/plasma-desktop-5.25.5-r1.ebuild X-VCS-Directories: kde-plasma/plasma-desktop/ kde-plasma/plasma-desktop/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: f978945a3ed1c5f29ea627e1fe8b6144438f1c9c X-VCS-Branch: master Date: Mon, 10 Oct 2022 12:23:05 +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: 748aa377-dc78-4a2f-9cbb-0dc000fbb009 X-Archives-Hash: 2127effcbe1c1e29a7b46cbe7cbdf9eb commit: f978945a3ed1c5f29ea627e1fe8b6144438f1c9c Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Oct 10 12:19:11 2022 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Oct 10 12:22:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f978945a kde-plasma/plasma-desktop: FolderView: Fix grid overflow property ...so it properly reports overflow state. KDE-bug: https://bugs.kde.org/show_bug.cgi?id=419878 Upstream commit cb3cbbe3b07da0c9e35cdef69343d32f7659f550 Signed-off-by: Andreas Sturmlechner gentoo.org> ...5.5-folderview-fix-grid-overflow-property.patch | 40 ++++++++++++++++++++++ .../plasma-desktop/plasma-desktop-5.25.5-r1.ebuild | 3 +- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/kde-plasma/plasma-desktop/files/plasma-desktop-5.25.5-folderview-fix-grid-overflow-property.patch b/kde-plasma/plasma-desktop/files/plasma-desktop-5.25.5-folderview-fix-grid-overflow-property.patch new file mode 100644 index 000000000000..40d34cad1bf1 --- /dev/null +++ b/kde-plasma/plasma-desktop/files/plasma-desktop-5.25.5-folderview-fix-grid-overflow-property.patch @@ -0,0 +1,40 @@ +From cb3cbbe3b07da0c9e35cdef69343d32f7659f550 Mon Sep 17 00:00:00 2001 +From: Arjen Hiemstra +Date: Thu, 15 Sep 2022 17:08:00 +0200 +Subject: [PATCH] folderview: Fix grid overflow property so it properly reports + overflow state + +In some cases, viewportArea.widthRatio or heightRatio can be 0 when it's +not actually overflowing. So account for that to ensure we properly +report the overflow state. + +BUG: 419878 + + +(cherry picked from commit 754e229b83708c1b8c7be547ef2dcf5645bafc21) +--- + containments/desktop/package/contents/ui/FolderView.qml | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/containments/desktop/package/contents/ui/FolderView.qml b/containments/desktop/package/contents/ui/FolderView.qml +index 72ae4903a..a057a5099 100644 +--- a/containments/desktop/package/contents/ui/FolderView.qml ++++ b/containments/desktop/package/contents/ui/FolderView.qml +@@ -657,7 +657,13 @@ FocusScope { + property bool ctrlPressed: false + property bool shiftPressed: false + +- property bool overflowing: (visibleArea.heightRatio < 1.0 || visibleArea.widthRatio < 1.0) ++ property bool overflowing: { ++ // widthRatio or heightRatio may be 0 when it's not actually ++ // overflowing, so account for that. ++ let widthOverflow = visibleArea.widthRatio > 0.0 && visibleArea.widthRatio < 1.0 ++ let heightOverflow = visibleArea.heightRatio > 0.0 && visibleArea.heightRatio < 1.0 ++ return widthOverflow || heightOverflow ++ } + + property bool scrollLeft: false + property bool scrollRight: false +-- +GitLab + diff --git a/kde-plasma/plasma-desktop/plasma-desktop-5.25.5-r1.ebuild b/kde-plasma/plasma-desktop/plasma-desktop-5.25.5-r1.ebuild index aec973dc613f..f4eba60391c6 100644 --- a/kde-plasma/plasma-desktop/plasma-desktop-5.25.5-r1.ebuild +++ b/kde-plasma/plasma-desktop/plasma-desktop-5.25.5-r1.ebuild @@ -77,7 +77,7 @@ COMMON_DEPEND=" x11-libs/libX11 x11-libs/libXfixes x11-libs/libXi - x11-libs/libxcb[xkb] + x11-libs/libxcb x11-libs/libxkbfile emoji? ( app-i18n/ibus[emoji] @@ -121,6 +121,7 @@ BDEPEND="virtual/pkgconfig" PATCHES=( "${WORKDIR}/${XORGHDRS}/${PN}-5.24.6-override-include-dirs.patch" # downstream patch "${FILESDIR}/${P}-desktoptoolbox-fix-flickering-on-close.patch" # KDE-bug 417849 + "${FILESDIR}/${P}-folderview-fix-grid-overflow-property.patch" # KDE-bug 419878 ) src_prepare() {