mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
kde-frameworks/kconfigwidgets: Drop IUSE=auth, fix graphical glitch
Upstream commit babd8078cc92b3f46dbab0286d7629ada1c2d10f KDE-bug: https://bugs.kde.org/show_bug.cgi?id=452211 Bug: https://bugs.gentoo.org/836361 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From babd8078cc92b3f46dbab0286d7629ada1c2d10f Mon Sep 17 00:00:00 2001
|
||||
From: David Redondo <kde@david-redondo.de>
|
||||
Date: Tue, 22 Mar 2022 10:52:04 +0100
|
||||
Subject: [PATCH] khamburgermenu: Ensure menu is polished before creating
|
||||
window
|
||||
|
||||
By force creating the window, there is no chance for the style
|
||||
to change the surface format that will be used because it's fixed
|
||||
once the window has been created.
|
||||
This caused for example in a graphical glitch with Breeze, so
|
||||
manually ensure the menu is polished.
|
||||
---
|
||||
src/khamburgermenuhelpers.cpp | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/khamburgermenuhelpers.cpp b/src/khamburgermenuhelpers.cpp
|
||||
index d1ae2835..beecba7c 100644
|
||||
--- a/src/khamburgermenuhelpers.cpp
|
||||
+++ b/src/khamburgermenuhelpers.cpp
|
||||
@@ -50,6 +50,9 @@ bool ButtonPressListener::eventFilter(QObject *watched, QEvent *event)
|
||||
if (!menu) {
|
||||
return false;
|
||||
}
|
||||
+ // ensure polished so the style can change the surfaceformat of the window which is
|
||||
+ // not possible once the window has been created
|
||||
+ menu->ensurePolished();
|
||||
menu->winId(); // trigger being a native widget already, to ensure windowHandle created
|
||||
// generic code if not known if the available parent widget is a native widget or not
|
||||
auto parentWindowHandle = watchedButton->windowHandle();
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -13,26 +13,27 @@ DESCRIPTION="Framework providing an assortment of configuration-related widgets"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
IUSE="+auth +man"
|
||||
IUSE="+man"
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
=kde-frameworks/kauth-${PVCUT}*:5
|
||||
=kde-frameworks/kcodecs-${PVCUT}*:5
|
||||
=kde-frameworks/kconfig-${PVCUT}*:5
|
||||
=kde-frameworks/kcoreaddons-${PVCUT}*:5
|
||||
=kde-frameworks/kguiaddons-${PVCUT}*:5
|
||||
=kde-frameworks/ki18n-${PVCUT}*:5
|
||||
=kde-frameworks/kwidgetsaddons-${PVCUT}*:5
|
||||
auth? ( =kde-frameworks/kauth-${PVCUT}*:5 )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="man? ( >=kde-frameworks/kdoctools-${PVCUT}:5 )"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-khamburgermenu-ensure-polished.patch" ) # KDE-bug 452211
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_KAUTH=$(usex auth)
|
||||
$(cmake_use_find_package man KF5DocTools)
|
||||
)
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
<bugs-to>https://bugs.kde.org/</bugs-to>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="auth">Enable authentication support via <pkg>kde-frameworks/kauth</pkg></flag>
|
||||
<flag name="designer">Build plugins for <pkg>dev-qt/designer</pkg></flag>
|
||||
</use>
|
||||
<slots>
|
||||
|
||||
Reference in New Issue
Block a user