window: Centralize setting active contact/request

We really don't need two nearly identical functions here.