Many CPAP masks have headgear that leaves a space in the back of the head where you can feed long hair either loose or in a ponytail. This may be more comfortable than putting the headgear over the top of your hair.