Fix a bug in linux mouse handling which prevented middle/right button being detected