Erwin Saavedra Posted July 15, 2021 Share Posted July 15, 2021 hi guys, i created an app and placed an imgui inside a window. it works during launch, i'm able to interact with the imgui widget, but the moment i leave the area, it becomes unresponsive. i am able to interact with utlra app kit widgets, but the imgui ones become unresponsive. the app works fine it doesn't crash or anything, and the ultra app kit widgets remain responsive as normal. any ideas why does the imgui window becomes unresponsive after the cursor leaves it? thanks! Quote Link to comment Share on other sites More sharing options...
silageman Posted February 25, 2022 Share Posted February 25, 2022 it's because your embedding a window inside a window and it looses focus. One way to get around this would be to add the mouse click "left down" so the code would be in the while loop but before the event stuff. if (viewport->MouseDown(MOUSE_LEFT)) { viewport->Activate(); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.