Skip to content

ImWindow wrongly closes window when docking two ImWindows together #6

@joscha999

Description

@joscha999

When docking windows together ImGui.Begin will return false for the tab that is not currently selected.

ImWindow.cs will call close in this case which in turn sets IsShown false, see:
https://github.com/HexaEngine/Hexa.NET.ImGui.Widgets/blob/main/Hexa.NET.ImGui.Widgets/ImWindow.cs#L80

Commenting/Removing that line fixes the issue. Windows still close correctly via IsShown and the following if checking/closing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions