Make a function for updating WindowManager's update_rect.