What do we do when we have inappropriate dreams? Not necessarily bad or unenjoyable just totally inappropriate. Shalom.
Most of the time, the dreams we have, come as a result of the thoughts and experiences that we had during the day or in the recent past. Therefore, the way to minimize havng inappropriate dreams is to be careful about what you think about during the day. Try to occupy yourself and think only about appropriate things, and that will help you somewhat. Another important idea is to daven to H-shem that He should help you have only appropriate thoughts.