Changeset View
Changeset View
Standalone View
Standalone View
effects/glide/glide.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
52 | { | 52 | { | ||
53 | return effects->isOpenGLCompositing() && effects->animationsSupported(); | 53 | return effects->isOpenGLCompositing() && effects->animationsSupported(); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | void GlideEffect::reconfigure(ReconfigureFlags) | 56 | void GlideEffect::reconfigure(ReconfigureFlags) | ||
57 | { | 57 | { | ||
58 | // Fetch config with KConfigXT | 58 | // Fetch config with KConfigXT | ||
59 | GlideConfig::self()->read(); | 59 | GlideConfig::self()->read(); | ||
60 | duration = animationTime<GlideConfig>(350); | 60 | duration = animationTime<GlideConfig>(250); | ||
61 | effect = (EffectStyle) GlideConfig::glideEffect(); | 61 | effect = (EffectStyle) GlideConfig::glideEffect(); | ||
62 | angle = GlideConfig::glideAngle(); | 62 | angle = GlideConfig::glideAngle(); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | void GlideEffect::prePaintScreen(ScreenPrePaintData& data, int time) | 65 | void GlideEffect::prePaintScreen(ScreenPrePaintData& data, int time) | ||
66 | { | 66 | { | ||
67 | if (!windows.isEmpty()) | 67 | if (!windows.isEmpty()) | ||
68 | data.mask |= PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS; | 68 | data.mask |= PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS; | ||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |