[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [knotifications] src: Handle left-button clicking on legacy systray icons
From: Martin Klapetek <mklapetek () kde ! org>
Date: 2016-03-31 2:50:28
Message-ID: E1alSgm-00031v-LS () scm ! kde ! org
[Download RAW message or body]
Git commit dae4401f6d85c22074b3160cc3ae33b91d986468 by Martin Klapetek.
Committed on 31/03/2016 at 02:47.
Pushed by mklapetek into branch 'master'.
Handle left-button clicking on legacy systray icons
As reported in https://bugs.kde.org/show_bug.cgi?id=358589 the left
click is not handled when SNI host is not present and the legacy icon is
used.
This adds handling of the left button.
REVIEW: 127452
BUG: 358589
M +2 -0 src/kstatusnotifieritem.cpp
http://commits.kde.org/knotifications/dae4401f6d85c22074b3160cc3ae33b91d986468
diff --git a/src/kstatusnotifieritem.cpp b/src/kstatusnotifieritem.cpp
index cf3e7b5..27abfb8 100644
--- a/src/kstatusnotifieritem.cpp
+++ b/src/kstatusnotifieritem.cpp
@@ -786,6 +786,8 @@ void KStatusNotifierItemPrivate::legacyActivated(QSystemTrayIcon::ActivationReas
{
if (reason == QSystemTrayIcon::MiddleClick) {
emit q->secondaryActivateRequested(systemTrayIcon->geometry().topLeft());
+ } else if (reason == QSystemTrayIcon::Trigger) {
+ q->activate();
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic