Docking: ImGuiDockNodeFlags_KeepAliveOnly
with DockSpaceOverViewport
causes WindowOverViewport_<viewport>
to received focus when hovered
#8125
Labels
Version/Branch of Dear ImGui:
1.90.1 (docking)
Back-ends:
imgui_impl_glfw.cpp
Compiler, OS:
Windows 10 + zig cc
Full config/build information:
Details:
When specifying
ImGuiDockNodeFlags_KeepAliveOnly
toDockSpaceOverViewport
, theWindowOverViewport_<viewport>
window receives focus when hovered.When
ImGuiDockNodeFlags_KeepAliveOnly
is not specified, the hovered window isNULL
as expected (when over the central node).My use case involves toggling the dock on and off (to hide editor UI). My game only receives input events if there is no imgui window focused, and so the
WindowOverViewport_<viewport>
window getting focus is an issue.Applying this diff resolves the issue:
Screenshots/Video:
imgui_issue.mp4
Minimal, Complete and Verifiable Example code:
Add the following code to one of the examples:
Open the Imgui Metrics/Debugger window and expand the Internal State tab. Observe when hovering the empty space in the window, that the
WindowOverViewport_11111111
window has focus.The text was updated successfully, but these errors were encountered: