diff --git a/0002-Fix-the-right-menu-without-frosted-glass-issue.patch b/0002-Fix-the-right-menu-without-frosted-glass-issue.patch new file mode 100644 index 0000000..b50b69a --- /dev/null +++ b/0002-Fix-the-right-menu-without-frosted-glass-issue.patch @@ -0,0 +1,25 @@ +From 4fe3f75353853d7671e93bf036badf7935cccc1f Mon Sep 17 00:00:00 2001 +From: tanyulong +Date: Thu, 8 Jul 2021 17:48:05 +0800 +Subject: [PATCH] Fix the right menu without frosted glass issue + +--- + ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp +index 2cd9612..e2714a2 100755 +--- a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp ++++ b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp +@@ -453,7 +453,7 @@ DeviceSwitchWidget::DeviceSwitchWidget(QWidget *parent) : QWidget (parent) + */ + void DeviceSwitchWidget::systemTrayMenuInit() + { +- menu = new QMenu(); ++ menu = new QMenu(this); + qDebug() << "new menu"; + // menu->setAttribute(Qt::WA_DeleteOnClose); + // menu->setAttribute(); +-- +2.23.0 + diff --git a/ukui-media.spec b/ukui-media.spec index f0e00d4..0458d4c 100644 --- a/ukui-media.spec +++ b/ukui-media.spec @@ -1,6 +1,6 @@ Name: ukui-media Version: 3.0.2 -Release: 2 +Release: 3 Summary: UKUI media utilities License: GPL-2+ GPL-3+ LGPL-2+ BSD-3-Clause URL: http://www.ukui.org @@ -33,6 +33,7 @@ Requires: ukui-media-common = %{version} Recommends: alsa-utils sound-theme-freedesktop patch0: 0001-fix-vol-icon-bug.patch +patch1: 0002-Fix-the-right-menu-without-frosted-glass-issue.patch %description A simple and lightweight screensaver written by Qt5. @@ -51,6 +52,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %prep %setup -q %patch0 -p1 +%patch1 -p1 %build ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 @@ -112,6 +114,9 @@ glib-compile-schemas /usr/share/glib-2.0/schemas/ %{_datadir}/glib-2.0/ %changelog +* Thu Jul 8 2021 tanyulong - 3.0.2-3 +- Fix the right menu without frosted glass + * Mon Dec 7 2020 lvhan - 3.0.2-2 - fix vol icon bug