imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Anyway to add maximization and minimization when a window is undocked.

Open rxantos1 opened this issue 5 months ago • 4 comments

Version/Branch of Dear ImGui:

Version 1.92, Branch: docking

Back-ends:

imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp

Compiler, OS:

Windows 10 + MSVC 2022

Full config/build information:

No response

Details:

Is it possible to add a minimize button and a maximize button to the windows when they are undocked from the main window?

I see a close window button just want to add a minimize and maximize one. But only when they are on their own glfw window, outside the main window. Plainly put how can I add two buttons to the dock window titlebar, when the dock window is floating outside the main window.

I tried hooking the hook. and just add the maximize/minimize to the window being created. But that didn't worked as planned either get nothing or get two titlebars (the windows one and the imgui one).

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();

rxantos1 avatar Sep 30 '25 04:09 rxantos1

Duplicate of #3486 This is not supported as of yet (will be eventually) but you may enable OS decoration to get access to OS buttons.

ocornut avatar Sep 30 '25 13:09 ocornut

How to enable OS decoration

qq1768101247 avatar Dec 01 '25 09:12 qq1768101247

Set ImGuiIO::ConfigViewportsNoDecoration to false.

GamingMinds-DanielC avatar Dec 01 '25 10:12 GamingMinds-DanielC

设置为 。ImGuiIO::ConfigViewportsNoDecoration``false

oh ,thanks

qq1768101247 avatar Dec 02 '25 01:12 qq1768101247