Skip to content

Docking nodes paint onto window title bars, and windows that are not docked are incorrectly colored #5709

Open

Description

@polyqubit

Version/Branch of Dear ImGui:

Version: 1.89
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Compiler: Visual Studio 2022
Operating System: Windows

My Issue/Question:

When dragging a window over a docking node, the node paints itself onto the window title bar until docked. This happens regardless of the number of windows. Additionally, undocked windows have a different color(brown) than the color that is set(black).

Screenshots/Video

image
image

ImGuiWindowFlags window_flags = 0;
window_flags |= ImGuiWindowFlags_NoCollapse;

ImGui::Begin("WindowA", nullptr, window_flags);
ImGui::End();

ImGui::Begin("WindowB", nullptr, window_flags);
ImGui::End();

ImGui::Begin("WindowC", nullptr, window_flags);
ImGui::End();

ImGui::Begin("testwindow", nullptr, flags);
ImGui::Button("dummy button");
ImGui::End();

Activity

  1. ocornut commented on Sep 26, 2022

    @ocornut
    Owner

    Please confirm if it happens with unmodified example app.
    It seems like a framebuffer clearing issue.

  2. polyqubit commented on Sep 26, 2022

    @polyqubit
    Author

    Dragging the demo window over the nodes seems to cause a different issue.
    image
    However, I am currently on Windows 11(the issue was submitted on Windows 10).

  3. ocornut commented on Sep 27, 2022

    @ocornut
    Owner

    That second one is likely Windows GPU drivers bugs see #4832 i am wondering if the earlier is the same thing.
    Try to update your drivers, otherwise complain to driver maker and see if you can help with the question asked in existing topics.

  4. polyqubit commented on Sep 27, 2022

    @polyqubit
    Author

    The issue persists after updating drivers(Intel Iris XE Graphics, integrated I believe) and system.

    Taking a window out of a group of windows and putting it back in causes this issue(possibly related to main issue)
    image
    image

    Placing a window with content onto another window results in a crash.
    https://user-images.githubusercontent.com/89955098/192579567-a6544e4b-813d-469d-a3cd-6b0be8e1d41c.mp4

    Placing a blank window onto another blank window does not result in a crash.
    https://user-images.githubusercontent.com/89955098/192579853-624646f8-1853-4513-997c-b78761b65851.mp4

    Placing a window with content onto a group of empty windows does not cause a crash, but does result in a visual glitch.
    https://user-images.githubusercontent.com/89955098/192580089-2763c205-b396-4abc-bc2c-933f06a6c14e.mp4

    Removing a window with content from a group of windows causes it to flicker.
    https://user-images.githubusercontent.com/89955098/192580443-4c586028-3922-40d2-9e15-6057be583391.mp4

    EDIT
    I'm not sure what happened, but now it seems like placing an empty window on another empty window causes a crash.

  5. added a commit that references this issue on Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址