Does anybody know how to get a message or trigger events based on a window coming into focus?
I can trigger an event based on a component being focused by a mouse down on the component, but not the component window.
So if I am shuffling around open windows by the title bar of the ui, my UI components have no clue if their window was the last selected or focused on an operating system level.
I’ve tried, showing, keyboard focus, as well as grabbing the window handle, and comparing mouse positions on a timer (sort of works) , but I can’t seem to distinguish between local windows within a process such as a DAW.
Maybe some sort of operating system relative z order through the component peer or tope level window?
There’s got to be a something deep in the depths of the juce framework for this.
If anyone has any ideas or a good direction to try, please let me know.