From e1b3429b4cb715b55817459f08a8a2dbe8a35057 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 13 Oct 2025 21:50:19 +0200 Subject: [PATCH] Fix regression on game window defocus --- Source/Editor/Windows/GameWindow.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Editor/Windows/GameWindow.cs b/Source/Editor/Windows/GameWindow.cs index 967859d66..0088ddd71 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -885,12 +885,12 @@ namespace FlaxEditor.Windows // Restore cursor visibility (could be hidden by the game) if (!_cursorVisible) Screen.CursorVisible = true; - } - if (Editor.IsPlayMode && IsDocked && IsSelected && RootWindow.FocusedControl == null) - { - // Game UI cleared focus so regain it to maintain UI navigation just like game window does - FlaxEngine.Scripting.InvokeOnUpdate(Focus); + if (Editor.IsPlayMode && IsDocked && IsSelected && RootWindow.FocusedControl == null) + { + // Game UI cleared focus so regain it to maintain UI navigation just like game window does + FlaxEngine.Scripting.InvokeOnUpdate(Focus); + } } }