mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 04:31:06 +01:00 
			
		
		
		
	Popups & Modals: Fix (amended) somehow undocumented Popup+Child behavior (useful for e.g. #718, #4461 and probably other things)
(broken by 1c4066cd)
			
			
This commit is contained in:
		| @@ -5511,7 +5511,7 @@ static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|  | ||||
|     const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0; | ||||
|     const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0 && ((new_flags & ImGuiWindowFlags_Popup) == 0 || (new_flags & ImGuiWindowFlags_ChildMenu) != 0); | ||||
|     const bool child_flag_changed = new_is_explicit_child != window->IsExplicitChild; | ||||
|     if ((just_created || child_flag_changed) && !new_is_explicit_child) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user