mozilla/hotdish — pull request #144 by gregglind (2014-01-21 22:29:56+00:00)
Title: Figure out when the window is in the foreground

`windows.activeWindow` only tells you if some other Firefox window is in the foreground, not if Firefox itself is entirely in the background. I'd like to know when we're in the foreground.

Would help with #88 and notification in general.

We might be able to tell this from tracking the window inactive event.