gui: fix bug where focused elements were not being unfocused on window deactivation

This commit is contained in:
nakst 2022-02-11 10:00:11 +00:00
parent 76a5ab5bb9
commit eebba8a873
1 changed files with 1 additions and 1 deletions

View File

@ -7919,7 +7919,7 @@ void UIProcessWindowManagerMessage(EsWindow *window, EsMessage *message, Process
window->inactiveFocus = window->focused;
window->inactiveFocus->Repaint(true);
window->focused = nullptr;
UIRemoveFocusFromElement(window->focused);
UIRemoveFocusFromElement(window->inactiveFocus);
}
EsMessageSend(window, message);