summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2017-05-11 15:33:42 +0200
committerQuentin Rameau <quinq@fifth.space>2017-05-11 15:33:42 +0200
commit4a1876eb80dca2c2a3636a7d3af55a34916bb03e (patch)
tree8c3b4670b68d6358ea22f68a14179f4ddf262ce5 /surf.c
parent93a3e4cda031d226549430e89b8119ce5c1ad7b3 (diff)
downloadsurf-4a1876eb80dca2c2a3636a7d3af55a34916bb03e.tar.gz
surf-4a1876eb80dca2c2a3636a7d3af55a34916bb03e.tar.bz2
surf-4a1876eb80dca2c2a3636a7d3af55a34916bb03e.zip
Add config option for smooth scrolling activation
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index fb104e9..2003b79 100644
--- a/surf.c
+++ b/surf.c
@@ -83,6 +83,7 @@ typedef enum {
ScrollBars,
ShowIndicators,
SiteQuirks,
+ SmoothScrolling,
SpellChecking,
SpellLanguages,
StrictTLS,
@@ -750,6 +751,9 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
return; /* do not update */
case ShowIndicators:
break;
+ case SmoothScrolling:
+ webkit_settings_set_enable_smooth_scrolling(s, a->b);
+ return; /* do not update */
case SiteQuirks:
webkit_settings_set_enable_site_specific_quirks(s, a->b);
break;
@@ -1029,6 +1033,7 @@ newview(Client *c, WebKitWebView *rv)
"enable-plugins", curconfig[Plugins].val.b,
"enable-accelerated-2d-canvas", curconfig[AcceleratedCanvas].val.b,
"enable-site-specific-quirks", curconfig[SiteQuirks].val.b,
+ "enable-smooth-scrolling", curconfig[SmoothScrolling].val.b,
"media-playback-requires-user-gesture", curconfig[MediaManualPlay].val.b,
NULL);
/* For more interesting settings, have a look at