Changeset View
Changeset View
Standalone View
Standalone View
effects/slidingpopups/slidingpopups.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 116 | { | |||
---|---|---|---|---|---|
118 | if (animationIt == m_animations.constEnd()) { | 118 | if (animationIt == m_animations.constEnd()) { | ||
119 | effects->paintWindow(w, mask, region, data); | 119 | effects->paintWindow(w, mask, region, data); | ||
120 | return; | 120 | return; | ||
121 | } | 121 | } | ||
122 | 122 | | |||
123 | const AnimationData &animData = m_animationsData[w]; | 123 | const AnimationData &animData = m_animationsData[w]; | ||
124 | const int slideLength = (animData.slideLength > 0) ? animData.slideLength : m_slideLength; | 124 | const int slideLength = (animData.slideLength > 0) ? animData.slideLength : m_slideLength; | ||
125 | 125 | | |||
126 | const QRect screenRect = effects->clientArea(FullScreenArea, w->screen(), w->desktop()); | 126 | const QRect screenRect = effects->clientArea(FullScreenArea, w->screen(), effects->currentDesktop()); | ||
127 | int splitPoint = 0; | 127 | int splitPoint = 0; | ||
128 | const QRect geo = w->expandedGeometry(); | 128 | const QRect geo = w->expandedGeometry(); | ||
129 | const qreal t = (*animationIt).timeLine.value(); | 129 | const qreal t = (*animationIt).timeLine.value(); | ||
130 | 130 | | |||
131 | switch (animData.location) { | 131 | switch (animData.location) { | ||
132 | case Location::Left: | 132 | case Location::Left: | ||
133 | if (slideLength < geo.width()) { | 133 | if (slideLength < geo.width()) { | ||
134 | data.multiplyOpacity(t); | 134 | data.multiplyOpacity(t); | ||
▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines |