Changeset View
Changeset View
Standalone View
Standalone View
effects/highlightwindow/highlightwindow.cpp
Show All 23 Lines | |||||
24 | { | 24 | { | ||
25 | 25 | | |||
26 | HighlightWindowEffect::HighlightWindowEffect() | 26 | HighlightWindowEffect::HighlightWindowEffect() | ||
27 | : m_finishing(false) | 27 | : m_finishing(false) | ||
28 | , m_fadeDuration(float(animationTime(150))) | 28 | , m_fadeDuration(float(animationTime(150))) | ||
29 | , m_monitorWindow(NULL) | 29 | , m_monitorWindow(NULL) | ||
30 | { | 30 | { | ||
31 | m_atom = effects->announceSupportProperty("_KDE_WINDOW_HIGHLIGHT", this); | 31 | m_atom = effects->announceSupportProperty("_KDE_WINDOW_HIGHLIGHT", this); | ||
32 | connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*))); | 32 | connect(effects, &EffectsHandler::windowAdded, this, &HighlightWindowEffect::slotWindowAdded); | ||
33 | connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*))); | 33 | connect(effects, &EffectsHandler::windowClosed, this, &HighlightWindowEffect::slotWindowClosed); | ||
34 | connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); | 34 | connect(effects, &EffectsHandler::windowDeleted, this, &HighlightWindowEffect::slotWindowDeleted); | ||
35 | connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long))); | 35 | connect(effects, &EffectsHandler::propertyNotify, this, | ||
36 | [this](EffectWindow *w, long atom) { | ||||
37 | slotPropertyNotify(w, atom, nullptr); | ||||
38 | } | ||||
39 | ); | ||||
36 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | 40 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | ||
37 | [this] { | 41 | [this] { | ||
38 | m_atom = effects->announceSupportProperty("_KDE_WINDOW_HIGHLIGHT", this); | 42 | m_atom = effects->announceSupportProperty("_KDE_WINDOW_HIGHLIGHT", this); | ||
39 | } | 43 | } | ||
40 | ); | 44 | ); | ||
41 | } | 45 | } | ||
42 | 46 | | |||
43 | HighlightWindowEffect::~HighlightWindowEffect() | 47 | HighlightWindowEffect::~HighlightWindowEffect() | ||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |