The desk doesn’t have anything to do with this. When you touch the mouse, you’re sending your built up static though the mouse and all the USB stuff, to the MB and eventually to ground…that’s bad. If the metal desk was grounded, when you lean on that to grab the mouse you’d be discharging yourself there instead of on the mouse.
The static (if that’s the problem) would be coming from you rubbing your feet on the ground and then discharging through your (grounded) computer equipment. The reason grounding the desk would help is that since you are more or less always in contact with the desk, any static you built up would be immediately discharged through the desk instead of the computer. Of course, since you mentioned that the top is wood, that would mean that you could have to keep your leg or hand always in contact with a metal part of the desk.
Something you could do though. Run a piece of wire from something grounded to the top of your desk and each time you go to use your computer, touch that first to discharge yourself.
As another fun experiment find a piece of wire, tape 1 end to your ankle and the other end to the the bottom of your shoe making sure tape is not covering the exposed metal where it touches the ground.
That should provide constant equalization of any charge in the carpet.
If you are well grounded, and your symptoms persist, static is not the culprit.
This phenomenon seemed to be happening, regardless of whether I was wearing shoes or stocking feet or barefoot, so I don’t know how that would make any difference.
I’m still incident free since eliminating the hub, so I’m thinking that was the culprit.