a. Indulging in a vagrant or idle exercise of the imagination; roaming upon a fruitless quest; idly fanciful. [ 1913 Webster ]
n. Indulgence in idle imagination; a foolish or useless pursuit or design. [ 1913 Webster ]
His wits were a woolgathering, as they say. Burton. [ 1913 Webster ]