Skip to content

Commit

Permalink
Fixed MainContextMenu displaying over windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Nov 10, 2023
1 parent 84129d3 commit 6bbc30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/UI/UIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ protected virtual void DrawUI()

private void DrawContextMenu()
{
if (ImGui.IsMouseReleased(ImGuiMouseButton.Right) && !ImGui.IsAnyItemActive())
if (ImGui.IsMouseReleased(ImGuiMouseButton.Right) && !ImGui.GetIO().WantCaptureMouse)
{
ImGui.OpenPopup("MainPopup");
}
Expand Down

0 comments on commit 6bbc30c

Please sign in to comment.