From eebba8a87306729331eea6e489e4c29d2a741c62 Mon Sep 17 00:00:00 2001 From: nakst <> Date: Fri, 11 Feb 2022 10:00:11 +0000 Subject: [PATCH] gui: fix bug where focused elements were not being unfocused on window deactivation --- desktop/gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);