Weird glitch on GMOD. Please help.

Hey, im running ubuntu 16.4 at the moment and installed gmod (not cracked version. Steam version!) And when i enter a game multiplayer or singleplayer it glitches out when i try to look to the left or right or up or down!! Please helpp