diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index cbf9437d..e67ab0fe 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -271,15 +271,22 @@ static void DrawContents() bptr->NewFrame( display_w, display_h ); static int activeFrames = 3; - auto& inputQueue = ImGui::GetCurrentContext()->InputEventsQueue; - if( !inputQueue.empty() ) + if( view && view->WasActive() ) { - 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; - break; + if( v.Type != ImGuiInputEventType_MouseViewport ) + { + activeFrames = 3; + break; + } } } }