Changeset View
Changeset View
Standalone View
Standalone View
effects/backgroundcontrast/contrast.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 46 | if (shader && shader->isValid()) { | |||
---|---|---|---|---|---|
49 | if (display) { | 49 | if (display) { | ||
50 | m_contrastManager = display->createContrastManager(this); | 50 | m_contrastManager = display->createContrastManager(this); | ||
51 | m_contrastManager->create(); | 51 | m_contrastManager->create(); | ||
52 | } | 52 | } | ||
53 | } else { | 53 | } else { | ||
54 | net_wm_contrast_region = 0; | 54 | net_wm_contrast_region = 0; | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*))); | 57 | connect(effects, &EffectsHandler::windowAdded, this, &ContrastEffect::slotWindowAdded); | ||
58 | connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); | 58 | connect(effects, &EffectsHandler::windowDeleted, this, &ContrastEffect::slotWindowDeleted); | ||
59 | connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long))); | 59 | connect(effects, &EffectsHandler::propertyNotify, this, &ContrastEffect::slotPropertyNotify); | ||
60 | connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged())); | 60 | connect(effects, &EffectsHandler::screenGeometryChanged, this, &ContrastEffect::slotScreenGeometryChanged); | ||
61 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | 61 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | ||
62 | [this] { | 62 | [this] { | ||
63 | if (shader && shader->isValid()) { | 63 | if (shader && shader->isValid()) { | ||
64 | net_wm_contrast_region = effects->announceSupportProperty(s_contrastAtomName, this); | 64 | net_wm_contrast_region = effects->announceSupportProperty(s_contrastAtomName, this); | ||
65 | } | 65 | } | ||
66 | } | 66 | } | ||
67 | ); | 67 | ); | ||
68 | 68 | | |||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |