I have a computer (in fact, a Banana Pi Pro) with a touchscreen which I have configured to emulate the right click via
Section "InputClass" Identifier "Touchscreen" Option "EmulateThirdButton" "1" Option "EmulateThirdButtonTimeout" "750" Option "EmulateThirdButtonThreshold" "30" EndSection
This works really well. But sometimes, when I want to use a real mouse, these settings become quite annoying, because long left mouse clicks are converted to right mouse clicks. Also, drag selection becomes imprecise because of 30 pixels threshold.
I wonder if it's possible to disable the right click emulation when the mouse is used:
Is it possible to modify Xorg configuration at runtime to alter the "InputClass" section?
If not, is it possible to apply this section only to one particular input device (the touchscreen)?
If the only way is to update
xorg.confand restart the server, what would be the least painful way to do it? Ideally it would be nice to preserve the applicatons which are already running, but I doubt it's possible.
Is there a program which does what I want without changing
xorg.conf? Like in this question, where
xrandris used to dynamically configure parameters which are static when configured via