get active view in a main thread
Merge pull request #56 from krya/window_id

fix #55: get active view in a main thread