General window repositioning