mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 14:16:36 +00:00
Internals: renamed FocusPreviousWindow() to FocusfrontMostActiveWindow()
This commit is contained in:
parent
2874aabb93
commit
5fd19f037f
@ -675,7 +675,7 @@ static bool DataTypeApplyOpFromText(const char* buf, const char* ini
|
|||||||
|
|
||||||
namespace ImGui
|
namespace ImGui
|
||||||
{
|
{
|
||||||
static void FocusPreviousWindow();
|
static void FocusFrontMostActiveWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@ -2511,7 +2511,7 @@ void ImGui::NewFrame()
|
|||||||
|
|
||||||
// Closing the focused window restore focus to the first active root window in descending z-order
|
// Closing the focused window restore focus to the first active root window in descending z-order
|
||||||
if (g.NavWindow && !g.NavWindow->WasActive)
|
if (g.NavWindow && !g.NavWindow->WasActive)
|
||||||
FocusPreviousWindow();
|
FocusFrontMostActiveWindow();
|
||||||
|
|
||||||
// No window should be open at the beginning of the frame.
|
// No window should be open at the beginning of the frame.
|
||||||
// But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear.
|
// But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear.
|
||||||
@ -5172,7 +5172,7 @@ void ImGui::FocusWindow(ImGuiWindow* window)
|
|||||||
BringWindowToFront(window);
|
BringWindowToFront(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImGui::FocusPreviousWindow()
|
void ImGui::FocusFrontMostActiveWindow()
|
||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
for (int i = g.Windows.Size - 1; i >= 0; i--)
|
for (int i = g.Windows.Size - 1; i >= 0; i--)
|
||||||
|
Loading…
Reference in New Issue
Block a user