Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 56 | if (m_shader && m_shader->isValid() && m_renderTargetsValid) { | |||
---|---|---|---|---|---|
59 | if (display) { | 59 | if (display) { | ||
60 | m_blurManager = display->createBlurManager(this); | 60 | m_blurManager = display->createBlurManager(this); | ||
61 | m_blurManager->create(); | 61 | m_blurManager->create(); | ||
62 | } | 62 | } | ||
63 | } else { | 63 | } else { | ||
64 | net_wm_blur_region = 0; | 64 | net_wm_blur_region = 0; | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*))); | 67 | connect(effects, &EffectsHandler::windowAdded, this, &BlurEffect::slotWindowAdded); | ||
68 | connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); | 68 | connect(effects, &EffectsHandler::windowDeleted, this, &BlurEffect::slotWindowDeleted); | ||
69 | connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long))); | 69 | connect(effects, &EffectsHandler::propertyNotify, this, &BlurEffect::slotPropertyNotify); | ||
70 | connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged())); | 70 | connect(effects, &EffectsHandler::screenGeometryChanged, this, &BlurEffect::slotScreenGeometryChanged); | ||
71 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | 71 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | ||
72 | [this] { | 72 | [this] { | ||
73 | if (m_shader && m_shader->isValid() && m_renderTargetsValid) { | 73 | if (m_shader && m_shader->isValid() && m_renderTargetsValid) { | ||
74 | net_wm_blur_region = effects->announceSupportProperty(s_blurAtomName, this); | 74 | net_wm_blur_region = effects->announceSupportProperty(s_blurAtomName, this); | ||
75 | } | 75 | } | ||
76 | } | 76 | } | ||
77 | ); | 77 | ); | ||
78 | 78 | | |||
▲ Show 20 Lines • Show All 693 Lines • Show Last 20 Lines |