Changeset View
Changeset View
Standalone View
Standalone View
effects/fallapart/fallapart.cpp
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | |||||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | void FallApartEffect::slotWindowClosed(EffectWindow* c) | 160 | void FallApartEffect::slotWindowClosed(EffectWindow* c) | ||
161 | { | 161 | { | ||
162 | if (!isRealWindow(c)) | 162 | if (!isRealWindow(c)) | ||
163 | return; | 163 | return; | ||
164 | if (!c->isVisible()) | 164 | if (!c->isVisible()) | ||
165 | return; | 165 | return; | ||
166 | const void* e = c->data(WindowClosedGrabRole).value<void*>(); | | |||
167 | if (e && e != this) | | |||
168 | return; | | |||
169 | c->setData(WindowClosedGrabRole, QVariant::fromValue(static_cast<void*>(this))); | 166 | c->setData(WindowClosedGrabRole, QVariant::fromValue(static_cast<void*>(this))); | ||
170 | windows[ c ] = 0; | 167 | windows[ c ] = 0; | ||
171 | c->refWindow(); | 168 | c->refWindow(); | ||
172 | } | 169 | } | ||
173 | 170 | | |||
174 | void FallApartEffect::slotWindowDeleted(EffectWindow* c) | 171 | void FallApartEffect::slotWindowDeleted(EffectWindow* c) | ||
175 | { | 172 | { | ||
176 | windows.remove(c); | 173 | windows.remove(c); | ||
Show All 27 Lines |