api/window: simplify window_set_height/width