Under x11 right mouse button generate <Button-3> and middle button generate <Button-2> events. But under OSX events are reversed: <Button-2>, <ButtonPress-2>, <ButtonRelease-2> generates on right, and <*-3> on middle button.