Ubuntu 18.04 Mouse right click not working

C++
$ sudo add-apt-repository universe
$ sudo apt install gnome-tweak-tool
$ sudo apt  update
$ gnome-tweaks
//after that go to keyboard and mouse section and click on Area problem solved
Source

Also in C++: