add dbus debug "activeEffects"
REVIEW: 103572 CCBUG: 288948 CCBUG: 290025 (cherry picked from commit 089aeee91b807d13c0c2b86fa18d05776bef5190)
This commit is contained in:
parent
8aa05a477b
commit
48c28a9b3d
5 changed files with 24 additions and 0 deletions
|
@ -275,6 +275,13 @@ void Workspace::toggleCompositing()
|
|||
}
|
||||
}
|
||||
|
||||
QStringList Workspace::activeEffects() const
|
||||
{
|
||||
if (effects)
|
||||
return static_cast< EffectsHandlerImpl* >(effects)->activeEffects();
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
void Workspace::updateCompositeBlocking(Client *c)
|
||||
{
|
||||
if (c) { // if c == 0 we just check if we can resume
|
||||
|
|
12
effects.cpp
12
effects.cpp
|
@ -1253,6 +1253,18 @@ void EffectsHandlerImpl::effectsChanged()
|
|||
}
|
||||
}
|
||||
|
||||
QStringList EffectsHandlerImpl::activeEffects() const
|
||||
{
|
||||
QStringList ret;
|
||||
for(QVector< KWin::EffectPair >::const_iterator it = loaded_effects.constBegin(),
|
||||
end = loaded_effects.constEnd(); it != end; ++it) {
|
||||
if (it->second->isActive()) {
|
||||
ret << it->first;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
EffectFrame* EffectsHandlerImpl::effectFrame(EffectFrameStyle style, bool staticSize, const QPoint& position, Qt::Alignment alignment) const
|
||||
{
|
||||
return new EffectFrameImpl(style, staticSize, position, alignment);
|
||||
|
|
|
@ -170,6 +170,7 @@ public:
|
|||
QStringList listOfEffects() const;
|
||||
|
||||
QList<EffectWindow*> elevatedWindows() const;
|
||||
QStringList activeEffects() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotClientGroupItemSwitched(EffectWindow* from, EffectWindow* to);
|
||||
|
|
|
@ -81,5 +81,8 @@
|
|||
<arg type="s" direction="in"/>
|
||||
<arg type="b" direction="out"/>
|
||||
</method>
|
||||
<method name="activeEffects">
|
||||
<arg type="as" direction="out"/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
|
|
|
@ -459,6 +459,7 @@ public:
|
|||
void previousTileLayout();
|
||||
bool stopActivity(const QString &id);
|
||||
bool startActivity(const QString &id);
|
||||
QStringList activeEffects() const;
|
||||
|
||||
void setCurrentScreen(int new_screen);
|
||||
|
||||
|
|
Loading…
Reference in a new issue