Sure, but there's a term for pissing off a judge in their court and it's not violation of domestic violence probation.
Johnson had already violated his probation for domestic violence. The judge was giving him a light sentence for the violation, but when he saw him slap the lawyers butt he interpreted it as Johnson either celebrating the light sentence or not taking the violation seriously. For that reason he refused the plea agreement, which was basically a slap on the wrist to begin with, and sentenced Johnson to the full month in jail.
No judge on earth is going to agree to a light sentence if they don't feel the defendant is remorseful or taking the crime they committed seriously. Celebrating before the lenient sentence is even official was just stupid.
I don't get why all of you are acting like the judge had a hissy fit and sentenced him to the month without cause. It wasn't personal on the judges behalf. From what I've read, Johnson was never disrespectful directly towards the judge.
Johnson showed a lack of contrition and remorse with his celebratory move, which makes the one month sentence perfectly warranted.