signal change of stacking order to the effects
REVIEW: 108059
This commit is contained in:
parent
70d19d9c80
commit
c158507a66
4 changed files with 14 additions and 0 deletions
|
@ -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()));
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue