|
|
|
@ -4700,7 +4700,7 @@ static void ImGui::RenderDimmedBackgrounds()
|
|
|
|
|
{
|
|
|
|
|
// Draw dimming behind CTRL+Tab target window and behind CTRL+Tab UI window
|
|
|
|
|
RenderDimmedBackgroundBehindWindow(g.NavWindowingTargetAnim, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio));
|
|
|
|
|
if (g.NavWindowingListWindow != NULL && g.NavWindowingListWindow->Viewport != g.NavWindowingTargetAnim->Viewport)
|
|
|
|
|
if (g.NavWindowingListWindow != NULL && g.NavWindowingListWindow->Viewport && g.NavWindowingListWindow->Viewport != g.NavWindowingTargetAnim->Viewport)
|
|
|
|
|
RenderDimmedBackgroundBehindWindow(g.NavWindowingListWindow, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio));
|
|
|
|
|
viewports_already_dimmed[0] = g.NavWindowingTargetAnim->Viewport;
|
|
|
|
|
viewports_already_dimmed[1] = g.NavWindowingListWindow ? g.NavWindowingListWindow->Viewport : NULL;
|
|
|
|
@ -12143,7 +12143,7 @@ void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale)
|
|
|
|
|
// If the backend doesn't set MouseLastHoveredViewport or doesn't honor ImGuiViewportFlags_NoInputs, we do a search ourselves.
|
|
|
|
|
// A) It won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window.
|
|
|
|
|
// B) It requires Platform_GetWindowFocus to be implemented by backend.
|
|
|
|
|
static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos)
|
|
|
|
|
ImGuiViewportP* ImGui::FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos)
|
|
|
|
|
{
|
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
ImGuiViewportP* best_candidate = NULL;
|
|
|
|
|