From d9cad5e1b63f2e1e86eb54551c72d17ee4dd070d Mon Sep 17 00:00:00 2001 From: davc0n Date: Sat, 3 May 2025 16:02:49 +0200 Subject: protocols: refactor class member vars (core) (#10259) --- src/protocols/InputMethodV2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/protocols/InputMethodV2.cpp') diff --git a/src/protocols/InputMethodV2.cpp b/src/protocols/InputMethodV2.cpp index 05cf90e1..ae575250 100644 --- a/src/protocols/InputMethodV2.cpp +++ b/src/protocols/InputMethodV2.cpp @@ -88,7 +88,7 @@ CInputMethodPopupV2::CInputMethodPopupV2(SP resource_, pSurface = surface; - listeners.destroySurface = surface->events.destroy.registerListener([this](std::any d) { + listeners.destroySurface = surface->m_events.destroy.registerListener([this](std::any d) { if (mapped) events.unmap.emit(); @@ -101,15 +101,15 @@ CInputMethodPopupV2::CInputMethodPopupV2(SP resource_, pSurface.reset(); }); - listeners.commitSurface = surface->events.commit.registerListener([this](std::any d) { - if (pSurface->current.texture && !mapped) { + listeners.commitSurface = surface->m_events.commit.registerListener([this](std::any d) { + if (pSurface->m_current.texture && !mapped) { mapped = true; pSurface->map(); events.map.emit(); return; } - if (!pSurface->current.texture && mapped) { + if (!pSurface->m_current.texture && mapped) { mapped = false; pSurface->unmap(); events.unmap.emit(); -- cgit v1.2.3