commit:     4fb135ec7d876105d1f1667ea55508563ce45282
Author:     Maciej Barć <xgqt <AT> protonmail <DOT> com>
AuthorDate: Sat Dec 26 02:04:19 2020 +0000
Commit:     Maciej Barć <xgqt <AT> protonmail <DOT> com>
CommitDate: Sat Dec 26 02:04:21 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4fb135ec

gui-apps/coretoppings: backport statusnotifierbutton patch

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>

 ...oretoppings-4.1.0.ebuild => coretoppings-4.1.0-r1.ebuild} |  4 ++++
 .../files/coretoppings-4.1.0-statusnotifierbutton.patch      | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/gui-apps/coretoppings/coretoppings-4.1.0.ebuild 
b/gui-apps/coretoppings/coretoppings-4.1.0-r1.ebuild
similarity index 94%
rename from gui-apps/coretoppings/coretoppings-4.1.0.ebuild
rename to gui-apps/coretoppings/coretoppings-4.1.0-r1.ebuild
index 0fa865a4..2b7a7669 100644
--- a/gui-apps/coretoppings/coretoppings-4.1.0.ebuild
+++ b/gui-apps/coretoppings/coretoppings-4.1.0-r1.ebuild
@@ -34,6 +34,10 @@ RDEPEND="
        pulseaudio? ( media-sound/pulseaudio )
 "
 
+PATCHES=(
+       "${FILESDIR}/${P}-statusnotifierbutton.patch"
+)
+
 src_prepare() {
        default
 

diff --git 
a/gui-apps/coretoppings/files/coretoppings-4.1.0-statusnotifierbutton.patch 
b/gui-apps/coretoppings/files/coretoppings-4.1.0-statusnotifierbutton.patch
new file mode 100644
index 00000000..cfd0f5cd
--- /dev/null
+++ b/gui-apps/coretoppings/files/coretoppings-4.1.0-statusnotifierbutton.patch
@@ -0,0 +1,12 @@
+index d07eb6b..c339657 100644
+--- a/sni/statusnotifierbutton.cpp
++++ b/sni/statusnotifierbutton.cpp
+@@ -267,7 +267,7 @@ void StatusNotifierButton::mouseReleaseEvent(QMouseEvent 
*event)
+ {
+     if (event->button() == Qt::LeftButton)
+         interface->Activate(QCursor::pos().x(), QCursor::pos().y());
+-    else if (event->button() == Qt::MidButton)
++    else if (event->button() == Qt::MiddleButton)
+         interface->SecondaryActivate(QCursor::pos().x(), QCursor::pos().y());
+     else if (Qt::RightButton == event->button())
+     {

Reply via email to