Set |is_window_inactive| to false when |do_reset| is true.