diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-25 22:46:36 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-25 22:46:36 +0200 |
| commit | c338acbb7dc64a735dadd0ae54f3b17d85a2a467 (patch) | |
| tree | 519419185e95dd1c49e4c2d089411436984886ce /src/managers/input/InputMethodRelay.cpp | |
| parent | 95782de966ec9e182d49b2f032b74a1101f423e8 (diff) | |
ime-relay: fix crash on nullptr surface focus
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
| -rw-r--r-- | src/managers/input/InputMethodRelay.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp index 92ab14d8..f1fe6421 100644 --- a/src/managers/input/InputMethodRelay.cpp +++ b/src/managers/input/InputMethodRelay.cpp @@ -143,6 +143,9 @@ void CInputMethodRelay::onKeyboardFocus(SP<CWLSurfaceResource> pSurface) { ti->leave(); } + if (!pSurface) + return; + for (auto& ti : m_vTextInputs) { if (!ti->isV3()) continue; |
