mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Fixed IsRootWindowOrAnyChildFocused() crashing if no window has focus (introduced yesterday in c38c54af52)
				
					
				
			This commit is contained in:
		@@ -3808,7 +3808,7 @@ bool ImGui::IsRootWindowOrAnyChildFocused()
 | 
			
		||||
{
 | 
			
		||||
    ImGuiState& g = *GImGui;
 | 
			
		||||
    ImGuiWindow* root_window = GetCurrentWindow()->RootWindow;
 | 
			
		||||
    return g.FocusedWindow->RootWindow == root_window;
 | 
			
		||||
    return g.FocusedWindow && g.FocusedWindow->RootWindow == root_window;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
float ImGui::GetWindowWidth()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user