From 710d4e837d5ec22f646116291db97b5847b14274 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Mon, 22 Jul 2024 22:09:20 +1000 Subject: [PATCH] fix: avoid stealing focus from other imgui windows on unhide --- ChatTwo/Ui/ChatLogWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index 344b7a9..462dbd1 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -429,7 +429,7 @@ public sealed class ChatLogWindow : Window public override unsafe void PreOpenCheck() { - Flags = ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse; + Flags = ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse | ImGuiWindowFlags.NoFocusOnAppearing; if (!Plugin.Config.CanMove) Flags |= ImGuiWindowFlags.NoMove;