]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Make scroll events work again in GTK3.
authorSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 13:09:57 +0000 (14:09 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 13:14:05 +0000 (14:14 +0100)
commit0f759e4e8589c69ab3e275046bef6fffb93a470b
treec0c7276ed8e51b3d97cf9711c678e08b4611bb05
parent5bb3334d0e88f9b51b616393267f6807c22148ba
Make scroll events work again in GTK3.

Apparently, if you don't specify GDK_SMOOTH_SCROLL_MASK in a widget's
event mask, then you don't receive "scroll_event" signals at all, even
of the non-smooth variety that was all GTK2 had. Hence, neither mouse
scroll wheels nor touchpad scroll gestures seem to generate any
response.

Adding GDK_SMOOTH_SCROLL_MASK brings the old scroll events back again,
so this is at least no worse than GTK2 was. But in GTK3 we _ought_ to
be able to do better still, by supporting smooth scrolling from
touchpads; this commit doesn't do that.
unix/gtkwin.c