I've run into a problem. I don't know when it started but it's quite annoying.
When my engine frame starts, my window loses focus about 75 % of the time. I guess this is because of too many objects/codes but perhaps it's because of something else.
Is there any way to prevent the window from loosing focus? What can be done to fix this?