Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.cpp
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | 293 | if (surf) { | |||
---|---|---|---|---|---|
298 | }); | 298 | }); | ||
299 | } | 299 | } | ||
300 | 300 | | |||
301 | updateBlurRegion(w); | 301 | updateBlurRegion(w); | ||
302 | } | 302 | } | ||
303 | 303 | | |||
304 | void BlurEffect::slotWindowDeleted(EffectWindow *w) | 304 | void BlurEffect::slotWindowDeleted(EffectWindow *w) | ||
305 | { | 305 | { | ||
306 | if (windowBlurChangedConnections.contains(w)) { | 306 | auto it = windowBlurChangedConnections.find(w); | ||
307 | disconnect(windowBlurChangedConnections[w]); | 307 | if (it == windowBlurChangedConnections.end()) { | ||
308 | windowBlurChangedConnections.remove(w); | 308 | return; | ||
309 | } | 309 | } | ||
310 | disconnect(*it); | ||||
311 | windowBlurChangedConnections.erase(it); | ||||
310 | } | 312 | } | ||
311 | 313 | | |||
312 | void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom) | 314 | void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom) | ||
313 | { | 315 | { | ||
314 | if (w && atom == net_wm_blur_region && net_wm_blur_region != XCB_ATOM_NONE) { | 316 | if (w && atom == net_wm_blur_region && net_wm_blur_region != XCB_ATOM_NONE) { | ||
315 | updateBlurRegion(w); | 317 | updateBlurRegion(w); | ||
316 | } | 318 | } | ||
317 | } | 319 | } | ||
▲ Show 20 Lines • Show All 455 Lines • Show Last 20 Lines |