cormier/glowing-bear — pull request #216 by lorenzhs (2014-03-05 11:49:34+00:00)
Title: Treat messages arriving in active buffer as unread if window isn't in focus

If messages arrive while the glowing-bear is in the background*, treat the incoming messages as unread. Mark as read when switching back to our tab.

* this API may not be entirely accurate, for example it can't detect an active tab fully hidden behind a non-browser window. It is guaranteed to never claim the window is hidden when it isn't, though, so we're good.