added support for windowchange events
Merge pull request #22 from nwpierce/add-windowchange

added support for windowchange events