Skip to content

How to only allow docking in main viewport (i.e., disable docking inside windows) #8462

@ksdhans

Description

@ksdhans

Version/Branch of Dear ImGui:

1.91.8-docking

Back-ends:

rlImGui

Compiler, OS:

Windows 10 + MSVC 2019

Full config/build information:

No response

Details:

By default Dear ImGUI allows any window to dock inside any other window. How can I disable docking inside one (or all windows)? What I'd like to achieve, is to allow windows to dock inside the main viewport, but NOT inside each other.

The ImGuiWindowFlags_NoDocking disables docking for a window entirely.

How can I allow a window to be able to dock, but NOT allow any window to dock inside it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions