mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-21 07:16:34 +00:00
Comments + clear out VisibleWinodw field (should have no effect)
This commit is contained in:
parent
c81a5a6070
commit
86fce79a6c
@ -3164,7 +3164,7 @@ void ImGui::StartMouseMovingWindow(ImGuiWindow* window)
|
|||||||
{
|
{
|
||||||
// Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows.
|
// Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows.
|
||||||
// We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward.
|
// We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward.
|
||||||
// This is because we want ActiveId to be set even when the window is stuck from moving.
|
// This is because we want ActiveId to be set even when the window is not permitted to move.
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
FocusWindow(window);
|
FocusWindow(window);
|
||||||
SetActiveID(window->MoveId, window);
|
SetActiveID(window->MoveId, window);
|
||||||
@ -3252,7 +3252,8 @@ void ImGui::UpdateMouseMovingWindowEndFrame()
|
|||||||
}
|
}
|
||||||
else if (g.NavWindow != NULL && GetFrontMostPopupModal() == NULL)
|
else if (g.NavWindow != NULL && GetFrontMostPopupModal() == NULL)
|
||||||
{
|
{
|
||||||
FocusWindow(NULL); // Clicking on void disable focus
|
// Clicking on void disable focus
|
||||||
|
FocusWindow(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5598,6 +5599,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw window + handle manual resize
|
// Draw window + handle manual resize
|
||||||
|
// As we highlight the title bar when want_focus is set, multiple reappearing windows will have have their title bar highlighted on their reappearing frame.
|
||||||
const float window_rounding = window->WindowRounding;
|
const float window_rounding = window->WindowRounding;
|
||||||
const float window_border_size = window->WindowBorderSize;
|
const float window_border_size = window->WindowBorderSize;
|
||||||
const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow;
|
const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow;
|
||||||
@ -10796,6 +10798,8 @@ static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
IM_ASSERT(erased);
|
IM_ASSERT(erased);
|
||||||
|
if (node->VisibleWindow == window)
|
||||||
|
node->VisibleWindow = NULL;
|
||||||
|
|
||||||
// Remove tab and possibly tab bar
|
// Remove tab and possibly tab bar
|
||||||
if (node->TabBar)
|
if (node->TabBar)
|
||||||
|
Loading…
Reference in New Issue
Block a user