protocols: refactor class member vars (core) (#10259)
This commit is contained in:
parent
0c736217a7
commit
d9cad5e1b6
57 changed files with 1160 additions and 1158 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue