Use correct windowmanager api calling sequence

No match.