HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
546 stars 44 forks source link

X11: Potential fix for #243 #244

Closed dzaima closed 1 year ago

dzaima commented 1 year ago

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)

navaratine commented 1 year ago

I've checked the behaviour with touchpad (OpenSuse) and patch seems to work just fine. image

tonsky commented 1 year ago

Doesn’t solve the issue for me on Ubuntu, but doesn’t seem to make anything worse either