Skip to content

Commit

Permalink
Cleaned up some unnecessary code for hit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed Aug 23, 2024
1 parent 0f2b1c3 commit 623a3f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ngscopeclient/WaveformGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,7 @@ bool WaveformGroup::Render()
//Check for right click on the title bar
//see https://github.com/ocornut/imgui/issues/7914
if(ImGui::IsItemHovered() && ImGui::IsMouseClicked(ImGuiMouseButton_Right))
{
auto rect = ImGui::GetCurrentWindow()->TitleBarRect();
if(ImGui::IsMouseHoveringRect(rect.Min, rect.Max, false))
ImGui::OpenPopup("Rename Group");
}
ImGui::OpenPopup("Rename Group");

if(ImGui::BeginPopup("Rename Group"))
{
Expand Down

0 comments on commit 623a3f5

Please sign in to comment.