Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docking operation resets the background color of attached sub windows #4101

Closed
EssenOH opened this issue May 5, 2021 · 1 comment
Closed

Comments

@EssenOH
Copy link

EssenOH commented May 5, 2021

Version/Branch of Dear ImGui:

Version: v1.83 WIP
Branch: v1.83 WIP_(docking)_

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_win32.cpp + imgui_impl_dx12.cpp
Compiler: Visual Studio 2017
Operating System: Windows 10

My Issue/Question:

Docking operation change the background color of sub window

Screenshots/Video

[ before docking ]
image

[while docking ]
image

[after docking ]
image

// snippet code to create the sub window & set the background color
const ImU32 color =
root_node_id_ != -1 ? evaluate(graph_, root_node_id_) : IM_COL32(255, 20, 147, 255);
ImGui::PushStyleColor(ImGuiCol_WindowBg, color);
ImGui::Begin("output color");
ImGui::End();
ImGui::PopStyleColor();

@ocornut
Copy link
Owner

ocornut commented May 5, 2021

Hello,

Closing as duplicate of #2700
See in particular my recent post: #2700 (comment)

I've got an "almost working" version of it but it's not easy to fix the edge cases and they would lead to flickering (no background at all for 1-2 frames) in some cases.

Further comments are best posted in #2700. Thank you!

@ocornut ocornut closed this as completed May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants