Changeset View
Changeset View
Standalone View
Standalone View
effects/wobblywindows/wobblywindows.cpp
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Line(s) | |||||
244 | void WobblyWindowsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) | 244 | void WobblyWindowsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) | ||
245 | { | 245 | { | ||
246 | if (windows.contains(w)) { | 246 | if (windows.contains(w)) { | ||
247 | data.setTransformed(); | 247 | data.setTransformed(); | ||
248 | data.quads = data.quads.makeRegularGrid(m_xTesselation, m_yTesselation); | 248 | data.quads = data.quads.makeRegularGrid(m_xTesselation, m_yTesselation); | ||
249 | bool stop = false; | 249 | bool stop = false; | ||
250 | qreal updateTime = time; | 250 | qreal updateTime = time; | ||
251 | 251 | | |||
252 | // We have to reset the clip region in order to render clients below | ||||
253 | // opaque wobbly windows. | ||||
254 | data.clip = QRegion(); | ||||
255 | | ||||
252 | while (!stop && (updateTime > maxTime)) { | 256 | while (!stop && (updateTime > maxTime)) { | ||
253 | #if defined VERBOSE_MODE | 257 | #if defined VERBOSE_MODE | ||
254 | qCDebug(KWINEFFECTS) << "loop time " << updateTime << " / " << time; | 258 | qCDebug(KWINEFFECTS) << "loop time " << updateTime << " / " << time; | ||
255 | #endif | 259 | #endif | ||
256 | stop = !updateWindowWobblyDatas(w, maxTime); | 260 | stop = !updateWindowWobblyDatas(w, maxTime); | ||
257 | updateTime -= maxTime; | 261 | updateTime -= maxTime; | ||
258 | } | 262 | } | ||
259 | if (!stop && updateTime > 0) { | 263 | if (!stop && updateTime > 0) { | ||
▲ Show 20 Lines • Show All 831 Lines • Show Last 20 Lines |