LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File plasma-dashboard-leave.diff of Package kdebase4-workspace (Project DISCONTINUED:openSUSE:11.2)

Index: plasma/shells/desktop/dashboardview.cpp
===================================================================
--- plasma/shells/desktop/dashboardview.cpp.orig
+++ plasma/shells/desktop/dashboardview.cpp
@@ -161,6 +161,12 @@ void DashboardView::appletBrowserDestroy
 bool DashboardView::eventFilter(QObject *watched, QEvent *event)
 {
     if (watched != m_appletBrowser) {
+        if (event->type() == QEvent::MouseButtonPress) {
+            QMouseEvent *me = static_cast<QMouseEvent *>(event);
+            if (me->button() == Qt::LeftButton) {
+                hideView();
+            }
+        }
         return false;
     }