Change focus clearing condition

This commit is contained in:
Soreepeong 2025-08-08 12:15:37 +09:00
parent 5d8e4bee92
commit 87770c57ab

View file

@ -245,7 +245,7 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
return default(LRESULT);
}
if (ImGui.IsAnyItemActive())
if (!ImGui.IsWindowHovered(ImGuiHoveredFlags.AnyWindow))
ImGui.ClearWindowFocus();
break;