Left-click does nothing for libappindicator-based tray icons (#1319869,kde#358589)

epel8
Rex Dieter 9 years ago
parent 7d9c11550f
commit c7cfe9c260

@ -2,7 +2,7 @@
Name: kf5-%{framework}
Version: 5.20.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 2 solution with abstraction for system notifications
License: LGPLv2+
@ -17,6 +17,9 @@ URL: http://projects.kde.org/knotifications
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz
# https://bugs.kde.org/show_bug.cgi?id=358589#c8
Patch1: knotifications-sni_left_click.patch
BuildRequires: dbusmenu-qt5-devel
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-kcodecs-devel >= %{version}
@ -85,6 +88,9 @@ mkdir -p %{buildroot}/%{_kf5_datadir}/knotifications5
%changelog
* Tue Mar 22 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.20.0-2
- Left-click does nothing for libappindicator-based tray icons (#1319869,kde#358589)
* Mon Mar 14 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.20.0-1
- KDE Frameworks 5.20.0

@ -0,0 +1,13 @@
diff --git a/src/kstatusnotifieritem.cpp b/src/kstatusnotifieritem.cpp
index f9bf460..f9f68a4 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();
}
}
Loading…
Cancel
Save