Callbacks for window focus.