close
Skip to content

Child Window edge/splitter resize Z error. #8815

@lailoken

Description

@lailoken

Version/Branch of Dear ImGui:

1.92.0 WIP (19194) - docking

Back-ends:

SDL2 & DX11

Compiler, OS:

Windows 11 & Linux

Full config/build information:

No response

Details:

In the sample the Begin is missing an IF block to conditionally draw the child windows.

This is not ideal and is inefficient. But should otherwise work (and it does in all other cases).

However, when I drag and dock the two windows over each other, so that they are both part of a tab group, then the first child resizer is triggered even if that window is not foremost.

Screenshots/Video:

this is the splitter window (in foremost tab):

Image

then I switch to the blank window tab, and hover my mouse over where the splitter is in the back window:

Image

(clicking now brings the back window to the front as well)

Minimal, Complete and Verifiable Example code:

void RenderSplitterDebug()
{
    ImGui::Begin("Window with Splitter");

    ImGui::BeginChild("child1", ImVec2(0, 0), ImGuiChildFlags_ResizeX | ImGuiChildFlags_Borders);
    ImGui::EndChild();

    ImGui::BeginChild("child2");
    ImGui::EndChild();

    ImGui::End();

    ImGui::Begin("Blank Window");
    ImGui::End();
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions