diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index 713e91444..65522397b 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -2,6 +2,7 @@ using System.Numerics; using Dalamud.Game.ClientState.Keys; using ImGuiNET; +using Serilog; namespace Dalamud.Interface.Windowing { @@ -201,7 +202,7 @@ namespace Dalamud.Interface.Windowing // Draw the actual window contents this.Draw(); - this.IsFocused = ImGui.IsWindowFocused(); + this.IsFocused = ImGui.IsWindowFocused(ImGuiFocusedFlags.RootAndChildWindows); var escapeDown = Service.Get()[VirtualKey.ESCAPE]; if (escapeDown && this.IsFocused && !wasEscPressedLastFrame && this.RespectCloseHotkey)