summaryrefslogtreecommitdiff
path: root/src/managers/input/InputMethodRelay.cpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-04-22 15:23:29 +0200
committerGitHub <noreply@github.com>2025-04-22 15:23:29 +0200
commit241a4935a244f403fa7108259075b04c81ed258f (patch)
tree50cc20b69c522c2be5396417931f799cac87138d /src/managers/input/InputMethodRelay.cpp
parent3577a6be31fa26539b4088ea07aa2221f84b132e (diff)
compositor: refactor class member vars (#10141)
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
-rw-r--r--src/managers/input/InputMethodRelay.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp
index 5f6c4354..c51d3ebe 100644
--- a/src/managers/input/InputMethodRelay.cpp
+++ b/src/managers/input/InputMethodRelay.cpp
@@ -55,17 +55,17 @@ void CInputMethodRelay::onNewIME(SP<CInputMethodV2> pIME) {
Debug::log(LOG, "New input popup");
});
- if (!g_pCompositor->m_pLastFocus)
+ if (!g_pCompositor->m_lastFocus)
return;
for (auto const& ti : m_vTextInputs) {
- if (ti->client() != g_pCompositor->m_pLastFocus->client())
+ if (ti->client() != g_pCompositor->m_lastFocus->client())
continue;
if (ti->isV3())
- ti->enter(g_pCompositor->m_pLastFocus.lock());
+ ti->enter(g_pCompositor->m_lastFocus.lock());
else
- ti->onEnabled(g_pCompositor->m_pLastFocus.lock());
+ ti->onEnabled(g_pCompositor->m_lastFocus.lock());
}
}
@@ -74,11 +74,11 @@ void CInputMethodRelay::removePopup(CInputPopup* pPopup) {
}
CTextInput* CInputMethodRelay::getFocusedTextInput() {
- if (!g_pCompositor->m_pLastFocus)
+ if (!g_pCompositor->m_lastFocus)
return nullptr;
for (auto const& ti : m_vTextInputs) {
- if (ti->focusedSurface() == g_pCompositor->m_pLastFocus)
+ if (ti->focusedSurface() == g_pCompositor->m_lastFocus)
return ti.get();
}