mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Check for popup background fade animation.
This commit is contained in:
parent
b3e9a03856
commit
c7ec2a9e0e
@ -277,15 +277,23 @@ static void DrawContents()
|
||||
}
|
||||
else
|
||||
{
|
||||
auto& inputQueue = ImGui::GetCurrentContext()->InputEventsQueue;
|
||||
if( !inputQueue.empty() )
|
||||
auto ctx = ImGui::GetCurrentContext();
|
||||
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;
|
||||
break;
|
||||
if( v.Type != ImGuiInputEventType_MouseViewport )
|
||||
{
|
||||
activeFrames = 3;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user