imgui-node-editor
imgui-node-editor copied to clipboard
Cannot minimise window.
If the Editor is inside a window or child window it cannot be minimised it simply messes up the entire rendering of ImGui. It looks to be framebuffer related.
Examples:
-
Before minimise.

-
After minimise.

You should notice that in the above image the main ui render target is off centered and not properly rendered. In some cases it looks way worse than this.
- After relaunching the application and launching the Editor. It simply renders nothing.

Can you tell if editor is updated when it's window is minimized?
Looks like all the code is executed when the window is minimised.
Does it help if you skip calling the editor when window is minimized?
If i skip everything between ed::begin and ed::end there are no issues.
I will guard the code for that case.
@Gh0stBlade Issue is fixed on develop branch. I'm punching out there fixes for other issues before making a release. So it is as stable as it can get.
Not fixed at all in develop, I have exactly the same issues but worse.
Thanks for an update. I suspect this may be related to mouse being moved to (-1, -1) when focus is lost. Can you confirm this?
There was a fix for dragging shooting to infinity when window loose focus. Can you it? It is on develop.
Can you tell me what size is sent to ed::Begin() when window is minimized?
Can you reproduce this bug with on of the examples?
I can confirm this is still not fixed, will investigate further. It might be a rendertarget issue.
@Gh0stBlade Hello, did you found a bug maybe?
It seems like it's writing to an invalid rendertarget when I do the bug steps to reproduce this. I checked this in renderdoc. My editor is using deferred rendering, no idea why this is happening.
Editor does not have control over that. Always use current ImGui context and current window. Is this by chance an issue of not setting correct context (editors orx imgui)?