mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 15:11:05 +01:00 
			
		
		
		
	Fixed IsItemActive() lagging by one frame on initial widget activation (#840)
This commit is contained in:
		@@ -1828,6 +1828,8 @@ void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window = NULL)
 | 
				
			|||||||
    g.ActiveId = id;
 | 
					    g.ActiveId = id;
 | 
				
			||||||
    g.ActiveIdAllowOverlap = false;
 | 
					    g.ActiveIdAllowOverlap = false;
 | 
				
			||||||
    g.ActiveIdIsJustActivated = true;
 | 
					    g.ActiveIdIsJustActivated = true;
 | 
				
			||||||
 | 
					    if (id)
 | 
				
			||||||
 | 
					        g.ActiveIdIsAlive = true;
 | 
				
			||||||
    g.ActiveIdWindow = window;
 | 
					    g.ActiveIdWindow = window;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user