mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Internals: rename RootWindow->RootWindowDockTree, RootWindowDockStop->RootWindow.
Why? So by default RootWindow matches user expectation on both branches, and RootWindowDockTree is more intentful. (Actually should reduce diff between master<>docking)
This commit is contained in:
		| @@ -500,7 +500,7 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool | ||||
|         flags |= ImGuiButtonFlags_PressedOnDefault_; | ||||
|  | ||||
|     ImGuiWindow* backup_hovered_window = g.HoveredWindow; | ||||
|     const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredWindow && g.HoveredWindow->RootWindow == window->RootWindow; | ||||
|     const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredWindow && g.HoveredWindow->RootWindowDockTree == window->RootWindowDockTree; | ||||
|     if (flatten_hovered_children) | ||||
|         g.HoveredWindow = window; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user