Toast popup every message

Hey guys been looking high and low and not found any information regarding this. I have noticed that everytime a message is received a toast popup is shown. Our company would like to keep the popups there incase a tech is out in the field and not at the computer so he can see the message when he gets back to his computer.

My question is, how could it be set so that when the chat window has focus, the toast popups do not appear, but when it is minimized or in the background there will be popups. I am willing to get dirty and hack away at the source code if needed.

Thanks