Fix #144.  Know whether tabset is in background.
Merge pull request #144 from gregglind/bug144

Figure out when the window is in the foreground