Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 277 | [this](AbstractClient* c, bool animate) { | |||
---|---|---|---|---|---|
279 | if (animate) { | 279 | if (animate) { | ||
280 | emit windowUnminimized(c->effectWindow()); | 280 | emit windowUnminimized(c->effectWindow()); | ||
281 | } | 281 | } | ||
282 | } | 282 | } | ||
283 | ); | 283 | ); | ||
284 | connect(c, &AbstractClient::modalChanged, this, &EffectsHandlerImpl::slotClientModalityChanged); | 284 | connect(c, &AbstractClient::modalChanged, this, &EffectsHandlerImpl::slotClientModalityChanged); | ||
285 | connect(c, &AbstractClient::geometryShapeChanged, this, &EffectsHandlerImpl::slotGeometryShapeChanged); | 285 | connect(c, &AbstractClient::geometryShapeChanged, this, &EffectsHandlerImpl::slotGeometryShapeChanged); | ||
286 | connect(c, &AbstractClient::damaged, this, &EffectsHandlerImpl::slotWindowDamaged); | 286 | connect(c, &AbstractClient::damaged, this, &EffectsHandlerImpl::slotWindowDamaged); | ||
287 | connect(c, &AbstractClient::unresponsiveChanged, this, | ||||
288 | [this, c](bool unresponsive) { | ||||
289 | emit windowUnresponsiveChanged(c->effectWindow(), unresponsive); | ||||
290 | } | ||||
291 | ); | ||||
287 | connect(c, &AbstractClient::windowShown, this, | 292 | connect(c, &AbstractClient::windowShown, this, | ||
288 | [this](Toplevel *c) { | 293 | [this](Toplevel *c) { | ||
289 | emit windowShown(c->effectWindow()); | 294 | emit windowShown(c->effectWindow()); | ||
290 | } | 295 | } | ||
291 | ); | 296 | ); | ||
292 | connect(c, &AbstractClient::windowHidden, this, | 297 | connect(c, &AbstractClient::windowHidden, this, | ||
293 | [this](Toplevel *c) { | 298 | [this](Toplevel *c) { | ||
294 | emit windowHidden(c->effectWindow()); | 299 | emit windowHidden(c->effectWindow()); | ||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 381 | if (m_currentPaintWindowIterator != m_activeEffects.constEnd()) { | |||
377 | (*m_currentPaintWindowIterator++)->paintWindow(w, mask, region, data); | 382 | (*m_currentPaintWindowIterator++)->paintWindow(w, mask, region, data); | ||
378 | --m_currentPaintWindowIterator; | 383 | --m_currentPaintWindowIterator; | ||
379 | } else | 384 | } else | ||
380 | m_scene->finalPaintWindow(static_cast<EffectWindowImpl*>(w), mask, region, data); | 385 | m_scene->finalPaintWindow(static_cast<EffectWindowImpl*>(w), mask, region, data); | ||
381 | } | 386 | } | ||
382 | 387 | | |||
383 | void EffectsHandlerImpl::paintEffectFrame(EffectFrame* frame, QRegion region, double opacity, double frameOpacity) | 388 | void EffectsHandlerImpl::paintEffectFrame(EffectFrame* frame, QRegion region, double opacity, double frameOpacity) | ||
384 | { | 389 | { | ||
385 | if (m_currentPaintEffectFrameIterator != m_activeEffects.constEnd()) { | 390 | if (m_currentPaintEffectFrameIterator != m_activeEffects.constEnd()) { | ||
Context not available. | |||||
graesslin: no cast on sender in new code please. We don't need this with lambda captures. |
no cast on sender in new code please. We don't need this with lambda captures.