Thanks for this Dan, this has been annoying me so much and I have tried lots of other "solutions". I could put up with it in the browser but VSCode/VSCodium also had the issue and this is too much!
I just wanted to let you know that I used a much simpler solution to the one you posted above and it worked for me (I am using Linux Mint 19.3 but I presume this will work or all Ubuntu derived Linux flavours).
Instead of removing and installing the items you list, I simply installed xserver-xorg-input-evdev-hwe-18.04 with the following:-
Thanks for this Dan, this has been annoying me so much and I have tried lots of other "solutions". I could put up with it in the browser but VSCode/VSCodium also had the issue and this is too much!
I just wanted to let you know that I used a much simpler solution to the one you posted above and it worked for me (I am using Linux Mint 19.3 but I presume this will work or all Ubuntu derived Linux flavours).
Instead of removing and installing the items you list, I simply installed xserver-xorg-input-evdev-hwe-18.04 with the following:-
sudo apt install xserver-xorg-input-evdev-hwe-18.04
and then made the edit you suggested to /usr/share/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
For other, newer versions of Ubuntu/Mint etc, I presume checking the HWE version with something like:-
sudo apt list --installed | grep hwe-
and then installing xserver-xorg-input-evdev-hwe- will work, fingers crossed!
Anyway, thanks again for posting this, I can now code without this major annoyance!