keep track of window focus for web chat/console, only ping when not focused