Merge "Get the focused window from WMS" into tm-dev