renamed 'active' to 'window', added view tracking to prevent activation after alt+tab. Fixes #17.