mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Fixed a bug allowing to move a _NoMove window from a child that doesn't have the flag. (#1381)
broken by e56eba44fe (#1337)
			
			
This commit is contained in:
		| @@ -2781,7 +2781,7 @@ void ImGui::EndFrame() | |||||||
|                 if (g.HoveredRootWindow != NULL) |                 if (g.HoveredRootWindow != NULL) | ||||||
|                 { |                 { | ||||||
|                     FocusWindow(g.HoveredWindow); |                     FocusWindow(g.HoveredWindow); | ||||||
|                     if (!(g.HoveredWindow->Flags & ImGuiWindowFlags_NoMove)) |                     if (!(g.HoveredWindow->Flags & ImGuiWindowFlags_NoMove) && !(g.HoveredRootWindow->Flags & ImGuiWindowFlags_NoMove)) | ||||||
|                     { |                     { | ||||||
|                         g.MovedWindow = g.HoveredWindow; |                         g.MovedWindow = g.HoveredWindow; | ||||||
|                         g.MovedWindowMoveId = g.HoveredWindow->MoveId; |                         g.MovedWindowMoveId = g.HoveredWindow->MoveId; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 omar
					omar