to be daydreaming
I spoke to him three times and he did not answer, he was daydreaming.
—Are you listening to me? —Sorry, I was daydreaming.
During the meeting, he spent half an hour daydreaming.