mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 20:09:49 +01:00
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();
|
||||
}
|
||||
|
||||
if (!pSurface)
|
||||
return;
|
||||
|
||||
for (auto& ti : m_vTextInputs) {
|
||||
if (!ti->isV3())
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue