diff --git a/desktop/gui.cpp b/desktop/gui.cpp index 1c93706..8f34a5d 100644 --- a/desktop/gui.cpp +++ b/desktop/gui.cpp @@ -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);