-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Some flag such as ImGuiWindowFlags_ViewportDisable to disable some windows from being external viewports #2544
Comments
As we are aiming to generalize the concept of owned/hosting viewports to allow zero or more than one of them, I think what we are looking for isn't so much of a
Right now I noticed this doesn't work but it is an easy fix. (PS: Some of the viewport/platform windows api are a little bit of a mess, here consider the use of viewport pointers vs viewport id. Will have a general small-breaking pass at them once the feature dust has settled) |
Addenum: I am also curious if you are using EDIT However mixing |
We use the default for Personally I do see
|
But what I am trying to say is an hypothetical "ViewportDisable" flag is ambiguous:
It doesn't work now because of a bug (I have a local fix). |
Ok got it, these would be a deal breaker. |
I pushed a fix for I think we'll somehow have to come back to this from another angle at some point, maybe after we've done #2471. |
Tested it out locally |
I've also spent half an hour trying to figure out how to disable log overlay from popping out to a separate window. A flag like ImGuiWindowFlags_ViewportDisable was the first thing I've looked for. Something like that, or maybe ImGuiWindowFlags_AlwaysInMainViewport would be awesome. |
I understand the problem and need here, but as stated here this would be misleading when it comes to supporting multiple main viewport? |
Unless I don't understand something, or there are plans to change it, there is a single main viewport for imgui context. So I would expect that a flag like ImGuiWindowFlags_AlwaysInMainViewport would work in that context, and it doesn't seem misleading to me. However I do see that a meaning of ImGuiWindowFlags_ViewportDisable flag may be misleading. |
The post above state that there is an attention for the user to have zero or more than one host viewport. I however understand this would be convenient mid-term and going to come up with an idea for a flag, maybe there will be a concept of a "default" viewport which can be modified during the frame. (Please all remember multi-viewport are in beta and some of those flags/api are going to change before it all gets merged in master.) |
The case of multiple main viewports (which could be multiple contexts etc... depending on impl.). |
Regarding viewports (using v1.69
docking
), is there a flag to disable some windows from becoming viewports.In our use case, we have notifications (that generate a lot of windows) and was wondering if we could flag these as non-viewports. Such that notifications can be animated and rendered within the main viewport and not create windows/swap chains.
The text was updated successfully, but these errors were encountered: