@ -4666,6 +4666,11 @@ void ImGui::NewFrame()
g . FramerateSecPerFrameCount = ImMin ( g . FramerateSecPerFrameCount + 1 , IM_ARRAYSIZE ( g . FramerateSecPerFrame ) ) ;
g . FramerateSecPerFrameCount = ImMin ( g . FramerateSecPerFrameCount + 1 , IM_ARRAYSIZE ( g . FramerateSecPerFrame ) ) ;
g . IO . Framerate = ( g . FramerateSecPerFrameAccum > 0.0f ) ? ( 1.0f / ( g . FramerateSecPerFrameAccum / ( float ) g . FramerateSecPerFrameCount ) ) : FLT_MAX ;
g . IO . Framerate = ( g . FramerateSecPerFrameAccum > 0.0f ) ? ( 1.0f / ( g . FramerateSecPerFrameAccum / ( float ) g . FramerateSecPerFrameCount ) ) : FLT_MAX ;
// Process input queue (trickle as many events as possible), turn events into writes to IO structure
g . InputEventsTrail . resize ( 0 ) ;
UpdateInputEvents ( g . IO . ConfigInputTrickleEventQueue ) ;
// Update viewports (after processing input queue, so io.MouseHoveredViewport is set)
UpdateViewportsNewFrame ( ) ;
UpdateViewportsNewFrame ( ) ;
// Setup current font and draw list shared data
// Setup current font and draw list shared data
@ -4788,10 +4793,6 @@ void ImGui::NewFrame()
//if (g.IO.AppFocusLost)
//if (g.IO.AppFocusLost)
// ClosePopupsExceptModals();
// ClosePopupsExceptModals();
// Process input queue (trickle as many events as possible)
g . InputEventsTrail . resize ( 0 ) ;
UpdateInputEvents ( g . IO . ConfigInputTrickleEventQueue ) ;
// Update keyboard input state
// Update keyboard input state
UpdateKeyboardInputs ( ) ;
UpdateKeyboardInputs ( ) ;