-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Viewports: switching windowed/fullscreen mode #2196
Comments
Hello @BrutPitt, Coincidentally I think some of the work I have been doing in the viewport branch this week have affected many of the things you are mentioning. Could you have a look at the latest version and confirm? The As the current version aim for a more stateless split/merge based on bounding boxes and z-order, this may become more complicated to handle:
Will the current code it will always remain outside the main viewport. By your definition of "fullscreen", it looks like you may be essentially wanting to completely enable / disable multi-viewport, and maybe toying with the master |
Ciao @ocornut, and thanks for reply. I tryed it and with only:
When I switch from Windowed->Fullscreen everything works well, but when I go back from Fullscreen->Windowed, I get an ASSERT Exception in imgui.cpp, line 3250,
because If I add, to previous code,
everything seems to work fine.
I meant that, if the windows are outside of screen/desktop, they are not incorporated in main viewport. Thank you, again. |
First update to latest master. (c08b4b4 is useful here) |
I tried it.
Thanks |
Version/Branch of Dear ImGui:
Viewports 1.66 WIP
Back-end file/Renderer/OS:
Back-ends: imgui_impl_GLFW.cpp + imgui_impl_opengl3.cpp
Renderer: OpenGL
OS: any
My Issue/Question:
Just a question/advice on how to recall all windows inside, switching in full screen mode, and vice versa.
(full screen, not maximized window)
Currently, in viewports mode, when I switch to full screen mode, all the windows that are outside the main viewport, remains outside (on desktop) and not are visualized in full screen (in main viewport).
I'm trying to recall they inside, and bring them outside when I return to the window mode.
I tried two ways, (tested only in Windows):
First way
This is simple and work well, but if a floating window, with its own viewport, is partially outside of desktop area (even just a pixel outside of desktop), the window remains outside the main viewport and not merged.
Second way
It works fine (for now), with no problems (it seems) ... but I am not well aware of the consequence of my actions internally to ImGui, and most of all I replied your internal code (of a static function), which may be subject to future changes.
Any suggestions on how can I operate and/or if maybe some future feature could be envisaged?
I know the version is under development, but perhaps it is a question that sooner or later could be presented.
Thanks in advance,
Michele
The text was updated successfully, but these errors were encountered: