Adding an activitiesChanged signal to Toplevel

Only emitted from Client.

REVIEW: 109706
BUG: 317366
FIXED-IN: 4.10.3
This commit is contained in:
Martin Gräßlin 2013-03-25 15:18:58 +01:00
parent f6bad91b17
commit d12f5de4c0
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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();