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/managers/input/TextInput.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/managers/input/TextInput.cpp') diff --git a/src/managers/input/TextInput.cpp b/src/managers/input/TextInput.cpp index 160d1c90..a629cd18 100644 --- a/src/managers/input/TextInput.cpp +++ b/src/managers/input/TextInput.cpp @@ -135,7 +135,7 @@ void CTextInput::setFocusedSurface(SP pSurface) { m_listeners.surfaceUnmap.reset(); m_listeners.surfaceDestroy.reset(); - m_listeners.surfaceUnmap = pSurface->events.unmap.registerListener([this](std::any d) { + m_listeners.surfaceUnmap = pSurface->m_events.unmap.registerListener([this](std::any d) { Debug::log(LOG, "Unmap TI owner1"); if (m_enterLocks) @@ -155,7 +155,7 @@ void CTextInput::setFocusedSurface(SP pSurface) { g_pInputManager->m_relay.deactivateIME(this); }); - m_listeners.surfaceDestroy = pSurface->events.destroy.registerListener([this](std::any d) { + m_listeners.surfaceDestroy = pSurface->m_events.destroy.registerListener([this](std::any d) { Debug::log(LOG, "Destroy TI owner1"); if (m_enterLocks) @@ -181,7 +181,7 @@ bool CTextInput::isV3() { } void CTextInput::enter(SP pSurface) { - if (!pSurface || !pSurface->mapped) + if (!pSurface || !pSurface->m_mapped) return; if (pSurface == focusedSurface()) -- cgit v1.2.3