pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
93a3e4c
)
Add config option for smooth scrolling activation
author
Quentin Rameau
<quinq@fifth.space>
Thu, 11 May 2017 13:33:42 +0000
(15:33 +0200)
committer
Quentin Rameau
<quinq@fifth.space>
Thu, 11 May 2017 13:33:42 +0000
(15:33 +0200)
config.def.h
patch
|
blob
|
history
surf.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
44f4584
..
50dd739
100644
(file)
--- 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(ScrollBars, 1),
SETB(ShowIndicators, 1),
SETB(SiteQuirks, 1),
+ SETB(SmoothScrolling, 0),
SETB(SpellChecking, 0),
SETV(SpellLanguages, ((char *[]){ "en_US", NULL })),
SETB(StrictTLS, 1),
SETB(SpellChecking, 0),
SETV(SpellLanguages, ((char *[]){ "en_US", NULL })),
SETB(StrictTLS, 1),
diff --git
a/surf.c
b/surf.c
index
fb104e9
..
2003b79
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-83,6
+83,7
@@
typedef enum {
ScrollBars,
ShowIndicators,
SiteQuirks,
ScrollBars,
ShowIndicators,
SiteQuirks,
+ SmoothScrolling,
SpellChecking,
SpellLanguages,
StrictTLS,
SpellChecking,
SpellLanguages,
StrictTLS,
@@
-750,6
+751,9
@@
setparameter(Client *c, int refresh, ParamName p, const Arg *a)
return; /* do not update */
case ShowIndicators:
break;
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;
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-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
"media-playback-requires-user-gesture", curconfig[MediaManualPlay].val.b,
NULL);
/* For more interesting settings, have a look at