diff --git a/kf5-knotifications.spec b/kf5-knotifications.spec index 8e1c842..0ea1af2 100644 --- a/kf5-knotifications.spec +++ b/kf5-knotifications.spec @@ -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 - 5.20.0-2 +- Left-click does nothing for libappindicator-based tray icons (#1319869,kde#358589) + * Mon Mar 14 2016 Daniel Vrátil - 5.20.0-1 - KDE Frameworks 5.20.0 diff --git a/knotifications-sni_left_click.patch b/knotifications-sni_left_click.patch new file mode 100644 index 0000000..d3d0973 --- /dev/null +++ b/knotifications-sni_left_click.patch @@ -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(); + } + } +