mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Viewports: Fix issue inferring viewport z-order when new popups gets created. (#3734) + Metrics updates.
Revert 6bc52667
Showing inferred order and missing flags in metrics.
			
			
This commit is contained in:
		@@ -1531,6 +1531,7 @@ struct ImGuiContext
 | 
			
		||||
    ImGuiViewportP*         CurrentViewport;                    // We track changes of viewport (happening in Begin) so we can call Platform_OnChangedViewport()
 | 
			
		||||
    ImGuiViewportP*         MouseViewport;
 | 
			
		||||
    ImGuiViewportP*         MouseLastHoveredViewport;           // Last known viewport that was hovered by mouse (even if we are not hovering any viewport any more) + honoring the _NoInputs flag.
 | 
			
		||||
    ImGuiID                 PlatformLastFocusedViewportId;
 | 
			
		||||
    int                     ViewportFrontMostStampCount;        // Every time the front-most window changes, we stamp its viewport with an incrementing counter
 | 
			
		||||
 | 
			
		||||
    // Gamepad/keyboard Navigation
 | 
			
		||||
@@ -1752,6 +1753,7 @@ struct ImGuiContext
 | 
			
		||||
        CurrentDpiScale = 0.0f;
 | 
			
		||||
        CurrentViewport = NULL;
 | 
			
		||||
        MouseViewport = MouseLastHoveredViewport = NULL;
 | 
			
		||||
        PlatformLastFocusedViewportId = 0;
 | 
			
		||||
        ViewportFrontMostStampCount = 0;
 | 
			
		||||
 | 
			
		||||
        NavWindow = NULL;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user