HumbleUI / JWM

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

X11: Scroll not reported while some other mouse button is held down #243

Closed dzaima closed 1 year ago

dzaima commented 2 years ago

So far I've traced it down to this:

While no mouse buttons are held, that gets two events, one with deviceEvent->deviceid being 2 and one with it being 10; the 10 fails the if and thus doesn't get processed.

Whereas when some mouse button is held down, only the 10==deviceEvent->deviceid event happens, and so nothing gets processed.

Hard-coding deviceEvent->deviceid there to always be 2 does give scroll updates, proving that receiving scroll updates while a button is held is possible, but of course such hard-coding won't work for an actual solution.

jakeisnt commented 1 year ago

Looks like this should be closed?

dzaima commented 1 year ago

yep