Seems to work for me (linux mint 21; don't have a touchpad to test to see how this may affect it), but I don't know if this is a good approach. classInfo->sourceid contains the id that is received both when some mouse button is and isn't held, so this switches to using it to look up the device instead of deviceid.
(also renames loop variable to avoid confusion as it's unrelated to the actual deviceid)
see #243
Seems to work for me (linux mint 21; don't have a touchpad to test to see how this may affect it), but I don't know if this is a good approach.
classInfo->sourceid
contains the id that is received both when some mouse button is and isn't held, so this switches to using it to look up the device instead of deviceid.(also renames loop variable to avoid confusion as it's unrelated to the actual deviceid)