Restless baby?

My baby seems really restless and moves a lot during nursing.. does that mean he has gas or is he just not all that hungry? It's so frustrating when he's flailing around 😣