mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Nav, Focus: Fixed ImGuiWindowFlags_NoBringToFrontOnFocus windows not being restoring focus properly after the main menu bar or last focused window is deactivated.
This commit is contained in:
		| @@ -649,7 +649,8 @@ struct ImGuiContext | ||||
|     int                     FrameCount; | ||||
|     int                     FrameCountEnded; | ||||
|     int                     FrameCountRendered; | ||||
|     ImVector<ImGuiWindow*>  Windows; | ||||
|     ImVector<ImGuiWindow*>  Windows;                            // Windows, sorted in display order, back to front | ||||
|     ImVector<ImGuiWindow*>  WindowsFocusOrder;                  // Windows, sorted in focus order, back to front | ||||
|     ImVector<ImGuiWindow*>  WindowsSortBuffer; | ||||
|     ImVector<ImGuiWindow*>  CurrentWindowStack; | ||||
|     ImGuiStorage            WindowsById; | ||||
| @@ -1113,9 +1114,10 @@ namespace ImGui | ||||
|     inline    ImGuiWindow*  GetCurrentWindow()          { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } | ||||
|     IMGUI_API ImGuiWindow*  FindWindowByName(const char* name); | ||||
|     IMGUI_API void          FocusWindow(ImGuiWindow* window); | ||||
|     IMGUI_API void          FocusFrontMostActiveWindowIgnoringOne(ImGuiWindow* ignore_window); | ||||
|     IMGUI_API void          BringWindowToFront(ImGuiWindow* window); | ||||
|     IMGUI_API void          BringWindowToBack(ImGuiWindow* window); | ||||
|     IMGUI_API void          FocusPreviousWindowIgnoringOne(ImGuiWindow* ignore_window); | ||||
|     IMGUI_API void          BringWindowToFocusFront(ImGuiWindow* window); | ||||
|     IMGUI_API void          BringWindowToDisplayFront(ImGuiWindow* window); | ||||
|     IMGUI_API void          BringWindowToDisplayBack(ImGuiWindow* window); | ||||
|     IMGUI_API void          UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); | ||||
|     IMGUI_API ImVec2        CalcWindowExpectedSize(ImGuiWindow* window); | ||||
|     IMGUI_API bool          IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user