From d12f5de4c01b8cc138ae49a664082fd38264a985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 25 Mar 2013 15:18:58 +0100 Subject: [PATCH] Adding an activitiesChanged signal to Toplevel Only emitted from Client. REVIEW: 109706 BUG: 317366 FIXED-IN: 4.10.3 --- client.cpp | 1 + toplevel.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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();