Adverb: it means to sit there just being useless
“Oh he’s just sitting there with his wang in the wind”