Changeset View
Changeset View
Standalone View
Standalone View
effects/fallapart/fallapart.cpp
Show All 28 Lines | |||||
29 | 29 | | |||
30 | bool FallApartEffect::supported() | 30 | bool FallApartEffect::supported() | ||
31 | { | 31 | { | ||
32 | return effects->isOpenGLCompositing() && effects->animationsSupported(); | 32 | return effects->isOpenGLCompositing() && effects->animationsSupported(); | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | FallApartEffect::FallApartEffect() | 35 | FallApartEffect::FallApartEffect() | ||
36 | { | 36 | { | ||
37 | initConfig<FallApartConfig>(); | ||||
37 | reconfigure(ReconfigureAll); | 38 | reconfigure(ReconfigureAll); | ||
38 | connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*))); | 39 | connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*))); | ||
39 | connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); | 40 | connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); | ||
40 | } | 41 | } | ||
41 | 42 | | |||
42 | void FallApartEffect::reconfigure(ReconfigureFlags) | 43 | void FallApartEffect::reconfigure(ReconfigureFlags) | ||
43 | { | 44 | { | ||
44 | FallApartConfig::self()->read(); | 45 | FallApartConfig::self()->read(); | ||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |