[gtk4] Problem delivering scroll events to apps
As I two-finger scroll my touchpad up and down a couple of times, the terminal often stops delivering these to the app for many seconds. I have to wait sometimes a few seconds, sometimes maybe 10-20 seconds for touchpad scrolling to begin to work again. (The scroll events that weren't delivered are swallowed for good, not delayed.)
Affected: at least less
(man
) with the "alternate scroll mode" synthesizing of up/down keypresses, and mc
with its real mouse handling. While in this buggy state, regular touchpad/mouse clicks (for selecting text in less
, or delivering a click event to mc
) work as expected.
I cannot trigger the stuck state using mouse wheel, but if I trigger it with the touchpad then mouse wheel events are also ignored while this buggy state lasts.
Scrolling the scrollback buffer on the normal screen always works.
Works fine in the vte-2.91-gtk4
test app, only gtk4-based gnome-terminal
is affected. (See update in comments: ./src/app/vte-2.91-gtk4 --scrolled-window
is also affected.)
Can only reproduce with Show scrollbar: Regular
or None
. Cannot reproduce with Overlay
. Kinetic scrolling seems to be irrelevant.
Ubuntu 23.10, X11, Unity 7.7, gtk 4.12.3, vte 0.76.0 (with loosened gtk4 version requirement), gnome-terminal 0a22fe68.
Can also reproduce on GNOME Shell w/ Wayland. It's a bit harder to trigger the problem there and lasts shorter (maybe 2-5 seconds tops).
Can also reproduce with self-compiled gtk 4.14.0.