I am making an OF app for Windows 10 and I have a problem with another app, working with the OF app, opening a window every so often and stealing focus from the fullscreen OF app.
Is there any way to prevent this either by disabling focus stealing or forcing the OF app to maintain focus?
Thanks for the response. Tried your suggestion as specified here by Zach, but it doesn’t seem to do the trick. It might only bring the window to the front, but not focus it.
This technically works, but what it does is grabs focus for the app in every frame. So when the focus is taken by the other app, there is an abrupt but noticeable flash of black screen, before the app regains focus. So this doesn’t solve my problem, unfortunately.