Callback when the application has focus

I'm working on a multi window application and I want to bring all the application windows to the front when the application has focus. Is there any way I can figure out if my application receives focus as opposed to a specific component.



You can check Process::isForegroundProcess(). There's no callback though, you'd have to check it periodically.

We’ve managed to get something working like this but unfortunately there are some corner cases that don’t work (for example using minimize in the taskbar on Linux). Is there a plan to support the concept of window groups?