Clicking on a lock event also opens lock info window.

This commit is contained in:
Bartosz Taudul 2018-12-16 20:01:40 +01:00
parent 444d5e20f0
commit 8f6f54e412

View File

@ -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 ) ); 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( itemHovered )
{ {
if( ImGui::IsMouseClicked( 0 ) )
{
m_lockInfoWindow = v.first;
}
if( condensed > 1 ) if( condensed > 1 )
{ {
ImGui::BeginTooltip(); ImGui::BeginTooltip();