fix: Properly clear last focused window after focus was restored

This commit is contained in:
WerWolv
2025-08-17 18:36:30 +02:00
parent 592eea1bfd
commit 01f24d2f2f

View File

@@ -371,6 +371,7 @@ namespace hex::plugin::builtin {
if (lastFocusedWindow != nullptr)
log::debug("Restoring focus on window '{}'", lastFocusedWindow->Name ? lastFocusedWindow->Name : "Unknown Window");
lastFocusedWindow = nullptr;
} else {
// If the main window loses focus, store the currently focused window
// and remove focus from it so it doesn't look like it's focused and