Introduction
Introduction Statistics Contact Development Disclaimer Help
Add config option for smooth scrolling activation - surf - surf browser, a WebK…
git clone git://git.suckless.org/surf
Log
Files
Refs
README
LICENSE
---
commit 4a1876eb80dca2c2a3636a7d3af55a34916bb03e
parent 93a3e4cda031d226549430e89b8119ce5c1ad7b3
Author: Quentin Rameau <[email protected]>
Date: Thu, 11 May 2017 15:33:42 +0200
Add config option for smooth scrolling activation
Diffstat:
M config.def.h | 1 +
M surf.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/config.def.h b/config.def.h
@@ -32,6 +32,7 @@ static Parameter defconfig[ParameterLast] = {
SETB(ScrollBars, 1),
SETB(ShowIndicators, 1),
SETB(SiteQuirks, 1),
+ SETB(SmoothScrolling, 0),
SETB(SpellChecking, 0),
SETV(SpellLanguages, ((char *[]){ "en_US", NULL })),
SETB(StrictTLS, 1),
diff --git 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…
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…
"enable-site-specific-quirks", curconfig[SiteQuirks].val.b,
+ "enable-smooth-scrolling", curconfig[SmoothScrolling].val.b,
"media-playback-requires-user-gesture", curconfig[MediaManu…
NULL);
/* For more interesting settings, have a look at
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.