Better solution for input source swtiching workaround. Works with any number of input sources.