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

Dealing with the glfw window #7529

Closed
gkolll opened this issue Apr 25, 2024 · 4 comments
Closed

Dealing with the glfw window #7529

gkolll opened this issue Apr 25, 2024 · 4 comments
Labels

Comments

@gkolll
Copy link

gkolll commented Apr 25, 2024

Version/Branch of Dear ImGui:

Version 1.9.0, Branch: Docking

Back-ends:

imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp

Compiler, OS:

Windows 10 + Mingw64

Full config/build information:

No response

Details:

My Issue/Question:
The DearImGui window is not dockable to the "main" glfw window (GLFWwindow* window = glfwcreateWindow(....)).
It is standing out from rest of the window (not in a good way). And it is appearing as seperate window (of the same app) in the task bar.

Is there any way to dock the DearImGui windows to it? Or is it just removed somehow?
Cause I haven't seen any screenshots where it is visible.

Screenshots/Video:

image

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();
@PathogenDavid
Copy link
Contributor

Is there any way to dock the DearImGui windows to it?

Use DockSpaceOverViewport. You can try it in the demo under Examples > Dockspace.

Or is it just removed somehow?

Removing the main viewport isn't currently supported. See #3680

@ocornut
Copy link
Owner

ocornut commented Apr 25, 2024

There are also configuration flags to configure if you want secondary viewports to appear in the taskbar.

@gkolll
Copy link
Author

gkolll commented Apr 25, 2024

Use DockSpaceOverViewport. You can try it in the demo under Examples > Dockspace.

thank you, got it.
image

@gkolll
Copy link
Author

gkolll commented Apr 25, 2024

There are also configuration flags to configure if you want secondary viewports to appear in the taskbar.

Good to know. I'll keep that in mind for future.

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

No branches or pull requests

3 participants