signal change of stacking order to the effects

REVIEW: 108059
This commit is contained in:
Thomas Lübking 2013-01-01 01:47:16 +01:00
parent 70d19d9c80
commit c158507a66
4 changed files with 14 additions and 0 deletions

View file

@ -131,6 +131,7 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene)
connect(ws, SIGNAL(activityAdded(QString)), SIGNAL(activityAdded(QString)));
connect(ws, SIGNAL(activityRemoved(QString)), SIGNAL(activityRemoved(QString)));
connect(ws, SIGNAL(currentActivityChanged(QString)), SIGNAL(currentActivityChanged(QString)));
connect(ws, SIGNAL(stackingOrderChanged()), SIGNAL(stackingOrderChanged()));
#ifdef KWIN_BUILD_TABBOX
connect(ws->tabBox(), SIGNAL(tabBoxAdded(int)), SIGNAL(tabBoxAdded(int)));
connect(ws->tabBox(), SIGNAL(tabBoxUpdated()), SIGNAL(tabBoxUpdated()));

View file

@ -131,6 +131,7 @@ void Workspace::updateStackingOrder(bool propagate_new_clients)
#endif
if (changed || propagate_new_clients) {
propagateClients(propagate_new_clients);
emit stackingOrderChanged();
if (m_compositor) {
m_compositor->addRepaintFull();
}

View file

@ -1157,6 +1157,13 @@ Q_SIGNALS:
*/
void activityRemoved(const QString &id);
/**
* This signels is emitted when ever the stacking order is change, ie. a window is risen
* or lowered
* @since 4.10
*/
void stackingOrderChanged();
protected:
QVector< EffectPair > loaded_effects;
QHash< QString, KLibrary* > effect_libraries;

View file

@ -569,6 +569,11 @@ signals:
* @param id id of the removed activity
*/
void activityRemoved(const QString &id);
/**
* This signels is emitted when ever the stacking order is change, ie. a window is risen
* or lowered
*/
void stackingOrderChanged();
private:
void init();