The key seems to be “the deliberate surrender of the mind to thoughts foreign to prayer.”
Many acts can be done without “surrender to foreign thoughts.”
For example, a housewife praying while doing laundry: Her mind need not be concentrated on getting out a stain, rather than the words of prayer (though the more active we are during prayer, the greater the risk of involuntary and voluntary distraction become).
Obviously, some acts require such a degree of “mindshare” and concentration, that voluntary distraction (or occasion to voluntary distraction) are more likely, but common sense usually prevents one from attempting prayer during such activities.
It reminds me of the old joke:
A Benedictine sees a Jesuit smoking while praying the Rosary, and scandalized, rebukes him, to which the Jesuit replies, “I’m not smoking while praying the Rosary; I’m praying the Rosary while smoking.”