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.
master
Arjen Hiemstra 2 years ago
parent bb91c94855
commit 15fbddc3d6

@ -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…
Cancel
Save