From 4fb135ec7d876105d1f1667ea55508563ce45282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sat, 26 Dec 2020 03:04:19 +0100 Subject: [PATCH] gui-apps/coretoppings: backport statusnotifierbutton patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Maciej Barć --- ...ngs-4.1.0.ebuild => coretoppings-4.1.0-r1.ebuild} | 4 ++++ .../coretoppings-4.1.0-statusnotifierbutton.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+) rename gui-apps/coretoppings/{coretoppings-4.1.0.ebuild => coretoppings-4.1.0-r1.ebuild} (94%) create mode 100644 gui-apps/coretoppings/files/coretoppings-4.1.0-statusnotifierbutton.patch 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 0fa865a465..2b7a766907 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 0000000000..cfd0f5cd62 --- /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()) + {