Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinanimationeffect.cpp
Context not available. | |||||
387 | if (d->m_animations.isEmpty()) { | 387 | if (d->m_animations.isEmpty()) { | ||
---|---|---|---|---|---|
388 | disconnectGeometryChanges(); | 388 | disconnectGeometryChanges(); | ||
389 | if (!d->m_zombies.isEmpty()) { // this is actually not supposed to happen | 389 | if (!d->m_zombies.isEmpty()) { // this is actually not supposed to happen | ||
390 | foreach (EffectWindow *w, d->m_zombies) | 390 | for (EffectWindow *w : qAsConst(d->m_zombies)) | ||
391 | w->unrefWindow(); | 391 | w->unrefWindow(); | ||
392 | d->m_zombies.clear(); | 392 | d->m_zombies.clear(); | ||
393 | } | 393 | } | ||
Context not available. | |||||
443 | WindowQuadList filtered; | 443 | WindowQuadList filtered; | ||
444 | if (clip.left() != geo.left()) { | 444 | if (clip.left() != geo.left()) { | ||
445 | quads = quads.splitAtX(clip.left()); | 445 | quads = quads.splitAtX(clip.left()); | ||
446 | foreach (const WindowQuad &quad, quads) { | 446 | for (const WindowQuad &quad : qAsConst(quads)) { | ||
447 | if (quad.right() >= clip.left()) | 447 | if (quad.right() >= clip.left()) | ||
448 | filtered << quad; | 448 | filtered << quad; | ||
449 | } | 449 | } | ||
Context not available. | |||||
452 | } | 452 | } | ||
453 | if (clip.right() != geo.right()) { | 453 | if (clip.right() != geo.right()) { | ||
454 | quads = quads.splitAtX(clip.left()); | 454 | quads = quads.splitAtX(clip.left()); | ||
455 | foreach (const WindowQuad &quad, quads) { | 455 | for (const WindowQuad &quad : qAsConst(quads)) { | ||
456 | if (quad.right() <= clip.right()) | 456 | if (quad.right() <= clip.right()) | ||
457 | filtered << quad; | 457 | filtered << quad; | ||
458 | } | 458 | } | ||
Context not available. | |||||
461 | } | 461 | } | ||
462 | if (clip.top() != geo.top()) { | 462 | if (clip.top() != geo.top()) { | ||
463 | quads = quads.splitAtY(clip.top()); | 463 | quads = quads.splitAtY(clip.top()); | ||
464 | foreach (const WindowQuad &quad, quads) { | 464 | for (const WindowQuad &quad : qAsConst(quads)) { | ||
465 | if (quad.top() >= clip.top()) | 465 | if (quad.top() >= clip.top()) | ||
466 | filtered << quad; | 466 | filtered << quad; | ||
467 | } | 467 | } | ||
Context not available. | |||||
470 | } | 470 | } | ||
471 | if (clip.bottom() != geo.bottom()) { | 471 | if (clip.bottom() != geo.bottom()) { | ||
472 | quads = quads.splitAtY(clip.bottom()); | 472 | quads = quads.splitAtY(clip.bottom()); | ||
473 | foreach (const WindowQuad &quad, quads) { | 473 | for (const WindowQuad &quad : qAsConst(quads)) { | ||
474 | if (quad.bottom() <= clip.bottom()) | 474 | if (quad.bottom() <= clip.bottom()) | ||
475 | filtered << quad; | 475 | filtered << quad; | ||
476 | } | 476 | } | ||
Context not available. |