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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/netbook/applets/currentappcontrol
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-11-30 21:56:44
Message-ID: 1259618204.627099.30166.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1056803 by mart:

sync the count when a window gets closed


 M  +7 -0      currentappcontrol.cpp  
 M  +1 -0      currentappcontrol.h  


--- trunk/KDE/kdebase/workspace/plasma/netbook/applets/currentappcontrol/currentappcontrol.cpp \
#1056802:1056803 @@ -85,6 +85,8 @@
             this, SLOT(activeWindowChanged(WId)));
     connect(KWindowSystem::self(), SIGNAL(windowChanged(WId)),
             this, SLOT(windowChanged(WId)));
+    connect(KWindowSystem::self(), SIGNAL(windowRemoved(WId)),
+            this, SLOT(windowRemoved(WId)));
     QGraphicsLinearLayout *lay = new QGraphicsLinearLayout(Qt::Horizontal, this);
     lay->setContentsMargins(0, 0, 0, 0);
     lay->setSpacing(0);
@@ -136,6 +138,11 @@
     }
 }
 
+void CurrentAppControl::windowRemoved(WId id)
+{
+    syncActiveWindow();
+}
+
 void CurrentAppControl::syncActiveWindow()
 {
     m_syncDelay = false;
--- trunk/KDE/kdebase/workspace/plasma/netbook/applets/currentappcontrol/currentappcontrol.h \
#1056802:1056803 @@ -48,6 +48,7 @@
 protected Q_SLOTS:
     void activeWindowChanged(WId id);
     void windowChanged(WId id);
+    void windowRemoved(WId id);
     void setSyncDelay(bool delay);
     void syncActiveWindow();
     void closeWindow();


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

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