Callback when the application has focus


#1

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.

thanks,

Thomas


#2

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


#3

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?