Is there a way to know when a (linux x windows) user changes the active window through alt-tab or click. I want to write a script that listens for this event (if such an event occurs, the script then goes on to find the current active window - which I know how to solve). I could also keep polling to find the current active window but that's a bad way to write this. Hoping to get a solution that can "listen" rather than "poll".Is there a way to know when a (linux x windows)