Nav tweaks. Demo: Fixed drag and drop demo state (broken by f152fac4f1). Fixed incorrect format string (which would work without IMGUI_DISABLE_OBSOLETE_FUNCTIONS).
// - Child windows can extend beyond the limit of their parent so we need to derive HoveredRootWindow from HoveredWindow.
// - When moving a window we can skip the search, which also conveniently bypasses the fact that window->WindowRectClipped is lagging as this point of the frame.
// - We also support the moved window toggling the NoInputs flag after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms.
boolclear_hovered_windows=false;
FindHoveredWindow();
// Modal windows prevents mouse from hovering behind them.
// We track click ownership. When clicked outside of a window the click is owned by the application and won't report hovering nor request capture even while dragging over our windows afterward.
constfloatmove_speed=ImFloor(NAV_MOVE_SPEED*g.IO.DeltaTime*ImMin(g.IO.DisplayFramebufferScale.x,g.IO.DisplayFramebufferScale.y));// FIXME: Doesn't code variable framerate very well
constfloatmove_speed=ImFloor(NAV_MOVE_SPEED*g.IO.DeltaTime*ImMin(g.IO.DisplayFramebufferScale.x,g.IO.DisplayFramebufferScale.y));// FIXME: Doesn't handle variable framerate very well