In social situations I'll sometimes drift off and get lost in my thought with a foggy mind feeling and have trouble focusing on the present situation. If I don't get good sleep it's really bad but I know most of it is depression and anxiety. The better I am feeling in those areas the less this problem happens. Besides having no depression and anxiety, is there a good way to prevent this from happening? It's weird. If anything is missing in life it can get worse. If I'm hungry or very thirsty, it's worse; if I'm tired it's worse, and of course if I'm depressed it's worse. They all involve something missing or me wanting something. It also happens while driving sometimes and it's difficult to force myself to focus on driving when it happens.