I've noticed and number of posts on Google + about how to handle punishments for difficult or inattentive players. The Lords of Tyr is a fairly laid back group of players. We all have our moments of inattention. However it rarely gets to the point of rudeness and can be solved by a simple "OK that was a fun tangent... now back to the game!"
Not every group gels as well as we do however. While I have a distaste for any kind of in game punishment, it is something that every DM or gaming group needs to think about.
I have a two part philosophy to in game punishments.
1. Make the "punishment" transparent. The rules must be known to the entire group before they can be used. Its not fair to surprise players with penalties until they know what is expected of them and what the penalties are.
2. Keep it simple. There are two situations for punishments in game, in combat and out of combat.
In Combat Punishment
If I were to punish a player for being difficult or inattentive during combat, I would to work it into the game by making them dazed.