* track only visible windows
* add tests for new feature
Reviewed tracking of visible windows for IDE-state events.