mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	This commit is contained in:
		| @@ -3831,7 +3831,7 @@ void ImGui::UpdateMouseMovingWindowEndFrame() | |||||||
|         // Find the top-most window between HoveredWindow and the top-most Modal Window. |         // Find the top-most window between HoveredWindow and the top-most Modal Window. | ||||||
|         // This is where we can trim the popup stack. |         // This is where we can trim the popup stack. | ||||||
|         ImGuiWindow* modal = GetTopMostPopupModal(); |         ImGuiWindow* modal = GetTopMostPopupModal(); | ||||||
|         bool hovered_window_above_modal = g.HoveredWindow && IsWindowAbove(g.HoveredWindow, modal); |         bool hovered_window_above_modal = g.HoveredWindow && (modal == NULL || IsWindowAbove(g.HoveredWindow, modal)); | ||||||
|         ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); |         ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user