mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Nav, Drag and Drop, Docking: fixed two issues leading nav result to conflict with moving a window. (#4211, #3025)
This commit is contained in:
		| @@ -7987,11 +7987,13 @@ bool    ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, | ||||
|             if (undocking_tab) | ||||
|             { | ||||
|                 // Undock | ||||
|                 // FIXME: refactor to share more code with e.g. StartMouseMovingWindow | ||||
|                 DockContextQueueUndockWindow(&g, docked_window); | ||||
|                 g.MovingWindow = docked_window; | ||||
|                 SetActiveID(g.MovingWindow->MoveId, g.MovingWindow); | ||||
|                 g.ActiveIdClickOffset -= g.MovingWindow->Pos - bb.Min; | ||||
|                 g.ActiveIdNoClearOnFocusLoss = true; | ||||
|                 SetActiveIdUsingNavAndKeys(); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user