You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with imgui and I'm trying to utilize the dockspaces as much as possible. I've been using DockBuilder to dock windows, disabling docking on those nodes after and do all the visual stuff to make them look as part of the window that they are docked into. The main reason why I'm doing this is to allow me to resize parts of the window by dragging the line between the windows.
The problem that I've run into is that when I click on the window that is docked, it gets focused and I can't use IsWindowFocused on the parent one. From what I've read on different issues, windows are not meant to propagate IsFocused to their parent, thats what child windows are for, but is there a way to dock Child Windows or to make Windows behave like child windows in this context?
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered:
In what context dopes IsWindowFocused(ImGuiFocusedFlags_DockHierarchy); return true?
If I all it right before ImGui::End of parent window, does it return true? Or do I have to call it inside each of the windows?
Can I somehow propagate it to highlight the tab bar in dock to show that the window is focused?
Version/Branch of Dear ImGui:
Version 1.89, Branch: docking
Back-ends:
imgui_impl_vulkan.cpp + imgui_impl_glfw3.cpp
Compiler, OS:
Windows MSVC
Full config/build information:
Details:
My Issue/Question:
I'm working with imgui and I'm trying to utilize the dockspaces as much as possible. I've been using DockBuilder to dock windows, disabling docking on those nodes after and do all the visual stuff to make them look as part of the window that they are docked into. The main reason why I'm doing this is to allow me to resize parts of the window by dragging the line between the windows.
The problem that I've run into is that when I click on the window that is docked, it gets focused and I can't use IsWindowFocused on the parent one. From what I've read on different issues, windows are not meant to propagate IsFocused to their parent, thats what child windows are for, but is there a way to dock Child Windows or to make Windows behave like child windows in this context?
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: