Skip to content

Automatically hide ImGui decorations on windows hosted in a viewport with OS decorations enabled #9153

@allkern

Description

@allkern

Version/Branch of Dear ImGui:

Version 1.92, Branch: docking

Back-ends:

n/a

Compiler, OS:

n/a

Full config/build information:

n/a

Details:

My Issue/Question:

When using viewports with OS decorations enabled, ImGui titlebars are still displayed below the OS titlebar, it would be pretty nice if the ImGui titlebar was hidden when the window is dragged out of the main viewport.

Attached below is a screenshot comparing viewport windows with and without ImGui decorations.

Screenshots/Video:

Image

Minimal, Complete and Verifiable Example code:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions