Might be a solution for only showing notifications in visible window/tab of SR