Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can ImGui manage the Main Viewport? #8379

Open
Icaka00 opened this issue Feb 6, 2025 · 3 comments
Open

Can ImGui manage the Main Viewport? #8379

Icaka00 opened this issue Feb 6, 2025 · 3 comments

Comments

@Icaka00
Copy link

Icaka00 commented Feb 6, 2025

Version/Branch of Dear ImGui:

Version v1.91.6, Branch: docking

Back-ends:

imgui_impl_Custom.cpp + imgui_impl_GLFW.cpp

Compiler, OS:

Windows 10 MSVC/Clang

Full config/build information:

No response

Details:

Is it possible to make ImGui handle the Main Viewport (GFLW Window)? Im talking about resize and drag.

I want to make a custom title bar, but that is just not possible with GLFW, the only option is disabling decorations entirely. Good, but then i lose Resize and Move. Is it possible to manage the window with ImGui? Or am i stuck with forking a GLFW? Should i just calculate and handle resize/move with ImGui myself?

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

@ocornut
Copy link
Owner

ocornut commented Feb 6, 2025

It's not possible yet but I eventually want it to happen.

@PathogenDavid
Copy link
Contributor

See also #3680, #3350, and #8268

Of particular interest is #8268 (comment), where Nik detailed how ImHex accomplishes what you're describing.

@ocornut
Copy link
Owner

ocornut commented Feb 18, 2025

Also see this comment I just posted:
#8268 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants