gui-apps/coretoppings: backport statusnotifierbutton patch

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć
2020-12-26 03:04:19 +01:00
parent f2b31d1923
commit 4fb135ec7d
2 changed files with 16 additions and 0 deletions

View File

@@ -34,6 +34,10 @@ RDEPEND="
pulseaudio? ( media-sound/pulseaudio )
"
PATCHES=(
"${FILESDIR}/${P}-statusnotifierbutton.patch"
)
src_prepare() {
default

View File

@@ -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())
{