gdk/x11: Reset all scroll valuators on enter
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Feb 2023 12:10:42 +0000 (13:10 +0100)
committerSimon McVittie <smcv@debian.org>
Sat, 4 Feb 2023 15:14:39 +0000 (15:14 +0000)
commite8480e2fa26fa0fe9d16dcf792e8b1cf0bb02fa7
tree1e2547a531f6ca27afc3d9a2db9ed0841bc95ad5
parentfb6adc64e7c02dc7e21967664309ac33007e25e9
gdk/x11: Reset all scroll valuators on enter

We no longer need to make much distinction between multiple logical
devices, plus it breaks esp. with the Xwayland input device distribution.
Just iterate across all devices and reset their scroll valuators.

Origin: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5479
Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4160
Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5202
Bug-Debian: https://bugs.debian.org/1029972
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gtk4/+bug/1993594
Applied-upstream: 4.9.3, commit:824e983372d939693f7eba5c394e647a9035a0f8

Gbp-Pq: Name gdk-x11-Reset-all-scroll-valuators-on-enter.patch
gdk/x11/gdkdevicemanager-xi2.c