From 8f6f54e4120288e33ebdc04099d13adca6bf85c8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 16 Dec 2018 20:01:40 +0100 Subject: [PATCH] Clicking on a lock event also opens lock info window. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b209b3a3..eaa4438b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2788,6 +2788,11 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, bool itemHovered = hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( std::max( px0, -10.0 ), offset ), wpos + ImVec2( std::min( pxend, double( w + 10 ) ), offset + ty ) ); if( itemHovered ) { + if( ImGui::IsMouseClicked( 0 ) ) + { + m_lockInfoWindow = v.first; + } + if( condensed > 1 ) { ImGui::BeginTooltip();