Thanks to everyone for the help. Turning off Chordmiddle did the trick. I thought I needed it on to make the middle button work, xf86cnf seems to imply this. I works fine now