mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-26 21:47:00 +00:00
Nav: Marked misleading/broken code that will never execute.
This commit is contained in:
parent
e3c89aeb10
commit
54eb4c485e
@ -3430,11 +3430,14 @@ void ImGui::EndFrame()
|
|||||||
if (g.HoveredRootWindow != NULL)
|
if (g.HoveredRootWindow != NULL)
|
||||||
{
|
{
|
||||||
FocusWindow(g.HoveredWindow);
|
FocusWindow(g.HoveredWindow);
|
||||||
|
// FIXME-NAV: This never execute because of the FocusWindow call above, however we may might this behavior?
|
||||||
|
/*
|
||||||
if (g.NavWindow != g.HoveredWindow)
|
if (g.NavWindow != g.HoveredWindow)
|
||||||
{
|
{
|
||||||
g.NavRefRectRel = ImRect(g.IO.MousePos - g.HoveredWindow->Pos, g.IO.MousePos - g.HoveredWindow->Pos); //ImRect(0,0,0,0);
|
g.NavRefRectRel = ImRect(g.IO.MousePos - g.HoveredWindow->Pos, g.IO.MousePos - g.HoveredWindow->Pos); //ImRect(0,0,0,0);
|
||||||
g.NavDisableHighlight = true;
|
g.NavDisableHighlight = true;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if (!(g.HoveredWindow->Flags & ImGuiWindowFlags_NoMove))
|
if (!(g.HoveredWindow->Flags & ImGuiWindowFlags_NoMove))
|
||||||
{
|
{
|
||||||
g.MovedWindow = g.HoveredWindow;
|
g.MovedWindow = g.HoveredWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user