1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Check for popup background fade animation.

This commit is contained in:
Bartosz Taudul 2022-09-28 00:26:29 +02:00
parent b3e9a03856
commit c7ec2a9e0e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -277,15 +277,23 @@ static void DrawContents()
} }
else else
{ {
auto& inputQueue = ImGui::GetCurrentContext()->InputEventsQueue; auto ctx = ImGui::GetCurrentContext();
if( !inputQueue.empty() ) if( ctx->DimBgRatio != 0 && ctx->DimBgRatio != 1 )
{ {
for( auto& v : inputQueue ) activeFrames = 3;
}
else
{
auto& inputQueue = ctx->InputEventsQueue;
if( !inputQueue.empty() )
{ {
if( v.Type != ImGuiInputEventType_MouseViewport ) for( auto& v : inputQueue )
{ {
activeFrames = 3; if( v.Type != ImGuiInputEventType_MouseViewport )
break; {
activeFrames = 3;
break;
}
} }
} }
} }