From e8a1eb8baf6ad070b9be7134fa88c98dc5cd3994 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Wed, 18 May 2022 04:01:33 +0200 Subject: [PATCH] Fix mouse remaining ungrabbed when running map from Radiant --- neo/tools/radiant/MainFrm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neo/tools/radiant/MainFrm.cpp b/neo/tools/radiant/MainFrm.cpp index 0c49ddbc..480ad1cd 100644 --- a/neo/tools/radiant/MainFrm.cpp +++ b/neo/tools/radiant/MainFrm.cpp @@ -6370,7 +6370,9 @@ void CMainFrame::OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized) { soundSystem->SetPlayingSoundWorld( g_qeglobals.sw ); } else { - //com_editorActive = false; + // DG: if the Radiant loses focus, tell the engine about it + // so the game window can get mouse focus (if it's running) + common->ActivateTool( false ); } }