ime-relay: fix crash on nullptr surface focus

This commit is contained in:
Vaxry 2024-06-25 22:46:36 +02:00
parent 95782de966
commit c338acbb7d
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ void CInputMethodRelay::onKeyboardFocus(SP<CWLSurfaceResource> pSurface) {
ti->leave();
}
if (!pSurface)
return;
for (auto& ti : m_vTextInputs) {
if (!ti->isV3())
continue;