[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace/mart/AppletAttached] plasma/generic/applets/systemtray/package/contents/ui: when clic
From:       Marco Martin <notmart () gmail ! com>
Date:       2014-01-31 18:03:16
Message-ID: E1W9IQu-0005aL-Ll () scm ! kde ! org
[Download RAW message or body]

Git commit 60690208355de7bbdf99ea932570656deedf098a by Marco Martin.
Committed on 31/01/2014 at 18:00.
Pushed by mart into branch 'mart/AppletAttached'.

when clicking a sni item, reset the systray status

M  +10   -3    plasma/generic/applets/systemtray/package/contents/ui/StatusNotifierItem.qml


http://commits.kde.org/kde-workspace/60690208355de7bbdf99ea932570656deedf098a

diff --git a/plasma/generic/applets/systemtray/package/contents/ui/StatusNotifierItem.qml \
b/plasma/generic/applets/systemtray/package/contents/ui/StatusNotifierItem.qml index \
                f3b36cb..fbb5ac9 100644
--- a/plasma/generic/applets/systemtray/package/contents/ui/StatusNotifierItem.qml
+++ b/plasma/generic/applets/systemtray/package/contents/ui/StatusNotifierItem.qml
@@ -199,9 +199,16 @@ PlasmaCore.ToolTipArea {
         print("__processClick");
         var pos = popupPosition(taskItemContainer, 0, 0);
         switch (buttons) {
-        case Qt.LeftButton:    activate1(pos.x, pos.y); break
-        case Qt.RightButton:   activateContextMenu(pos.x, pos.y); break
-        case Qt.MiddleButton:  activate2(pos.x, pos.y); break
+        case Qt.LeftButton:
+            root.expandedTask = null;
+            activate1(pos.x, pos.y);
+            break;
+        case Qt.RightButton:
+            activateContextMenu(pos.x, pos.y);
+            break;
+        case Qt.MiddleButton:
+            activate2(pos.x, pos.y);
+            break;
         }
         plasmoid.expanded = false;
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic