Unify GPU info window child selection with the rest of lists.

This commit is contained in:
Bartosz Taudul 2018-03-19 02:25:24 +01:00
parent efe3eda845
commit 3b34ebf544

View File

@ -2571,14 +2571,14 @@ void View::DrawGpuInfoWindow()
{
auto& cev = *ev.child[cti[i]];
const auto& csl = m_worker.GetSourceLocation( cev.srcloc );
ImGui::Text( "%s", m_worker.GetString( csl.name ) );
bool b = false;
if( ImGui::Selectable( m_worker.GetString( csl.name ), &b, ImGuiSelectableFlags_SpanAllColumns ) )
{
m_gpuInfoWindow = &cev;
}
if( ImGui::IsItemHovered() )
{
m_gpuHighlight = &cev;
if( ImGui::IsMouseClicked( 0 ) )
{
m_gpuInfoWindow = &cev;
}
if( ImGui::IsMouseClicked( 2 ) )
{
ZoomToZone( cev );