Hi there, I don’t see any “Cinder App” way to set a window’s state to foreground, and to have mouse/keyboard focus. There is code (e.g. in
AppImplMswBasic) that does this internally, but it’s not exposed…nor do I see it exposed on Mac. Am I missing something?
The only Cinder-API way to do both seems to be to call
setFullScreen(true) (even if only temporarily), but of course this actually makes the window go full-screen, which I don’t want. I just want to give it focus and show it on top of other windows.
(There is also
setAlwaysOnTop(true), which brings it on top but does not give it focus…also, I don’t want it to be always on top, just to set it there initially.)
Is there a workaround someone can suggest? I (on Windows) guess get the underlying HWND handle using
getNative() and then call
::SetForegroundWindow(hwnd) myself? (And whatever the equivalent is on macOS.)