mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 06:45:59 +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