move.c: add update_topline_win used by window api
api/window: simplify window_set_height/width