summaryrefslogtreecommitdiff
path: root/src/protocols/HyprlandSurface.cpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-03 16:02:49 +0200
committerGitHub <noreply@github.com>2025-05-03 16:02:49 +0200
commitd9cad5e1b63f2e1e86eb54551c72d17ee4dd070d (patch)
tree8238b613480214eaf91fc85343d25503bafa51c3 /src/protocols/HyprlandSurface.cpp
parent0c736217a787928a87224b2bf7e984c446d4fc22 (diff)
protocols: refactor class member vars (core) (#10259)
Diffstat (limited to 'src/protocols/HyprlandSurface.cpp')
-rw-r--r--src/protocols/HyprlandSurface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocols/HyprlandSurface.cpp b/src/protocols/HyprlandSurface.cpp
index cdf6d722..13d5a49a 100644
--- a/src/protocols/HyprlandSurface.cpp
+++ b/src/protocols/HyprlandSurface.cpp
@@ -48,10 +48,10 @@ void CHyprlandSurface::setResource(SP<CHyprlandSurfaceV1> resource) {
}
m_bVisibleRegionChanged = true;
- m_visibleRegion = CWLRegionResource::fromResource(region)->region;
+ m_visibleRegion = CWLRegionResource::fromResource(region)->m_region;
});
- 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_overallOpacity != m_fOpacity || m_bVisibleRegionChanged)) {
@@ -67,7 +67,7 @@ void CHyprlandSurface::setResource(SP<CHyprlandSurfaceV1> 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::hyprlandSurface->destroySurface(this);
});