simon-git: putty (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Fri Sep 25 15:25:26 BST 2015
TL;DR:
0f759e4 Make scroll events work again in GTK3.
4df5d56 Support smooth scrolling in GTK3.
Repository: git://git.tartarus.org/simon/putty.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2015-09-25 15:25:26
commit 0f759e4e8589c69ab3e275046bef6fffb93a470b
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=0f759e4e8589c69ab3e275046bef6fffb93a470b;hp=5bb3334d0e88f9b51b616393267f6807c22148ba
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Sep 25 14:09:57 2015 +0100
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
commit 4df5d56f3df09398c1ffe8773c20cc4fecf3b102
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=4df5d56f3df09398c1ffe8773c20cc4fecf3b102;hp=0f759e4e8589c69ab3e275046bef6fffb93a470b
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Sep 25 15:11:44 2015 +0100
Support smooth scrolling in GTK3.
Touchpad gestures can generate much smoother scrolling events than the
discrete increments of mouse wheels. GDK3 supports this by means of a
new kind of scroll event, with direction GDK_SCROLL_SMOOTH and a
floating-point delta value. Added support for this; so in GTK3 mode,
you can now touchpad-scroll at a granularity of one line rather than
five, but in mouse tracking mode, scroll events are still grouped into
5-line chunks for purposes of turning them into escape sequences to
send to the server.
unix/gtkwin.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 72 insertions(+), 3 deletions(-)
More information about the tartarus-commits
mailing list