My .xsession contains:
Code:
autocutsel -fork &
autocutsel -selection PRIMARY -fork &
The two processes work together to keep things in sync.
(Don't ask me why I used ampersands with -fork. It's been years since I provisioned this, and I have no memory of why.)