diff --git a/client.cpp b/client.cpp index a694cdd426..eab7c5af1d 100644 --- a/client.cpp +++ b/client.cpp @@ -1571,6 +1571,7 @@ void Client::updateActivities(bool includeTransients) m_blockedActivityUpdatesRequireTransients |= includeTransients; return; } + emit activitiesChanged(this); m_blockedActivityUpdatesRequireTransients = false; // reset if (includeTransients) workspace()->updateOnAllActivitiesOfTransients(this); diff --git a/toplevel.h b/toplevel.h index 371490891e..b11907a475 100644 --- a/toplevel.h +++ b/toplevel.h @@ -150,7 +150,7 @@ class Toplevel * See http://standards.freedesktop.org/wm-spec/wm-spec-latest.html . */ Q_PROPERTY(int windowType READ windowType) - Q_PROPERTY(QStringList activities READ activities) + Q_PROPERTY(QStringList activities READ activities NOTIFY activitiesChanged) /** * Whether this Toplevel is managed by KWin (it has control over its placement and other * aspects, as opposed to override-redirect windows that are entirely handled by the application). @@ -322,6 +322,7 @@ signals: * schedule a repaint of the scene. **/ void needsRepaint(); + void activitiesChanged(KWin::Toplevel* toplevel); protected: virtual ~Toplevel();