ime-relay: fix crash on nullptr surface focus
This commit is contained in:
parent
95782de966
commit
c338acbb7d
1 changed files with 3 additions and 0 deletions
|
|
@ -143,6 +143,9 @@ void CInputMethodRelay::onKeyboardFocus(SP<CWLSurfaceResource> pSurface) {
|
||||||
ti->leave();
|
ti->leave();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!pSurface)
|
||||||
|
return;
|
||||||
|
|
||||||
for (auto& ti : m_vTextInputs) {
|
for (auto& ti : m_vTextInputs) {
|
||||||
if (!ti->isV3())
|
if (!ti->isV3())
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue