mplayer: small refactor of mouse listener code