Distraction
Distraction is a barrier to listening that can be either physical, mental, visual or auditory based. In this case, thinking about a date when in class is a mental distraction, where you are distracted by your thoughts and imagination rather than focusing on the information being taught in your class.