mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 12:53:51 +00:00
Check for activity in View.
This commit is contained in:
parent
a8276c41c3
commit
b3e9a03856
@ -271,15 +271,22 @@ static void DrawContents()
|
|||||||
bptr->NewFrame( display_w, display_h );
|
bptr->NewFrame( display_w, display_h );
|
||||||
|
|
||||||
static int activeFrames = 3;
|
static int activeFrames = 3;
|
||||||
auto& inputQueue = ImGui::GetCurrentContext()->InputEventsQueue;
|
if( view && view->WasActive() )
|
||||||
if( !inputQueue.empty() )
|
|
||||||
{
|
{
|
||||||
for( auto& v : inputQueue )
|
activeFrames = 3;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
auto& inputQueue = ImGui::GetCurrentContext()->InputEventsQueue;
|
||||||
|
if( !inputQueue.empty() )
|
||||||
{
|
{
|
||||||
if( v.Type != ImGuiInputEventType_MouseViewport )
|
for( auto& v : inputQueue )
|
||||||
{
|
{
|
||||||
activeFrames = 3;
|
if( v.Type != ImGuiInputEventType_MouseViewport )
|
||||||
break;
|
{
|
||||||
|
activeFrames = 3;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user