mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 00:42:11 +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();
|
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
Reference in a new issue