when she reached the border between the ocean of pain where she would never leave and the world that other people inhabited , she realized the cowboy had his hand on her forehead , stroking back her hair .