diff options
| author | davc0n <dconti.dev@gmail.com> | 2025-05-03 16:02:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-03 16:02:49 +0200 |
| commit | d9cad5e1b63f2e1e86eb54551c72d17ee4dd070d (patch) | |
| tree | 8238b613480214eaf91fc85343d25503bafa51c3 /src/protocols/AlphaModifier.cpp | |
| parent | 0c736217a787928a87224b2bf7e984c446d4fc22 (diff) | |
protocols: refactor class member vars (core) (#10259)
Diffstat (limited to 'src/protocols/AlphaModifier.cpp')
| -rw-r--r-- | src/protocols/AlphaModifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/AlphaModifier.cpp b/src/protocols/AlphaModifier.cpp index 3fea51fe..87c46765 100644 --- a/src/protocols/AlphaModifier.cpp +++ b/src/protocols/AlphaModifier.cpp @@ -30,7 +30,7 @@ void CAlphaModifier::setResource(SP<CWpAlphaModifierSurfaceV1> resource) { m_fAlpha = alpha / (float)UINT32_MAX; }); - listeners.surfaceCommitted = m_pSurface->events.commit.registerListener([this](std::any data) { + listeners.surfaceCommitted = m_pSurface->m_events.commit.registerListener([this](std::any data) { auto surface = CWLSurface::fromResource(m_pSurface.lock()); if (surface && surface->m_alphaModifier != m_fAlpha) { @@ -45,7 +45,7 @@ void CAlphaModifier::setResource(SP<CWpAlphaModifierSurfaceV1> resource) { } }); - listeners.surfaceDestroyed = m_pSurface->events.destroy.registerListener([this](std::any data) { + listeners.surfaceDestroyed = m_pSurface->m_events.destroy.registerListener([this](std::any data) { if (!m_pResource) PROTO::alphaModifier->destroyAlphaModifier(this); }); |
