Hello,
first of all thanks for this plugin! It's very fast and I haven't had any issues with it since the day i started using it :)
I have similar needs for a feature as ontdamian, so maybe i can add some input to the functionality :)
I don't really want to switch scenes through focusing other windows / applications. Because once i tab out of a game to write in chat and switch back to the game, it switches back to the Backup Scene and back to the game, pretty fast. I don't think viewers should notice when i'm tabbing out and this can be a distraction from the content i'm streaming.
So my suggestion is, make the focused attribute an optional attribute for every scene. So you don't have to use it only if you really want to. So that a scene gets displayed once a Window is currently opened or active (it doesn't have to be focused). That would fix the tabbing out issue.
Then you could even implement priorities to some scenes to ensure correct scene switching, once you close a window.
Something like this:
So in my example the highest Priority would be 1 and the lowest 5. So once i close League of Legends or win / lose the game, it should check if Dead By daylight is open, if not -> check if the next priority is open and so on and on. And if none are opened, the backup Scene should be displayed. Or make it the last scene with the least priority. Whatever you think is best.
I don't know if this is a good idea. It's just something i was thinking about and thought I would let you know. Maybe this can help :)
Thanks again and keep up the good work! :)