Register KWin::SessionState with QMetaType
Otherwise it cannot be used in scripts - like the sessionquit effect which uses it to check if we're actually shutting down.
This commit is contained in:
parent
bb91c94855
commit
15fbddc3d6
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene)
|
|||
, m_trackingCursorChanges(0)
|
||||
{
|
||||
qRegisterMetaType<QVector<KWin::EffectWindow *>>();
|
||||
qRegisterMetaType<KWin::SessionState>();
|
||||
connect(m_effectLoader, &AbstractEffectLoader::effectLoaded, this, [this](Effect *effect, const QString &name) {
|
||||
effect_order.insert(effect->requestedEffectChainPosition(), EffectPair(name, effect));
|
||||
loaded_effects << EffectPair(name, effect);
|
||||
|
|
Loading…
Reference in a new issue