diff options
Diffstat (limited to 'src/managers/input/TextInput.cpp')
| -rw-r--r-- | src/managers/input/TextInput.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/managers/input/TextInput.cpp b/src/managers/input/TextInput.cpp index f7a6a350..4b28d513 100644 --- a/src/managers/input/TextInput.cpp +++ b/src/managers/input/TextInput.cpp @@ -63,11 +63,10 @@ void CTextInput::onEnabled(SP<CWLSurfaceResource> surfV1) { // v1 only, map surface to PTI if (!isV3()) { - SP<CWLSurfaceResource> pSurface = surfV1; - if (g_pCompositor->m_pLastFocus != pSurface || !pV1Input->active) + if (g_pCompositor->m_pLastFocus != surfV1 || !pV1Input->active) return; - enter(pSurface); + enter(surfV1); } g_pInputManager->m_sIMERelay.activateIME(this); |
