HumbleUI / JWM

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

X11: Scrolling in another window affects scroll distance in JWM's #214

Closed dzaima closed 2 years ago

dzaima commented 2 years ago
  1. scroll a lot in an unrelated window
  2. hover over a JWM window
  3. scroll once
  4. observe scroll delta being very big due to adding up the scrolling done in the other window

(for the longest time I was thinking my scroll wheel was just broken :|)

tonsky commented 2 years ago

Lol, thanks for reporting :)

dzaima commented 2 years ago

So far, my understanding is that this is just.... intentional behavior? here's GTK's scroll wheel logic if i'm reading correctly, and here is a function to unset the current value, invoked at least here. This results in the first scroll event after regaining focus being used as "calibration", thus making said event not actually scroll. cmon X11/XI :/