I have a three button mouse on a Mac machine (the middle button being a scroller as well). When I clicked on the middle button, the screen appears with all icons of the programs that I have opened.
Huh. It sounds like you have some kind of special mouse driver that is mapping your middle mouse button to a different task. You'll probably need to disable it for the X11 program.