diff options
author | Eon S. Jeon <esjeon@hyunmu.am> | 2017-09-30 00:34:35 +0900 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2018-02-23 13:39:35 +0100 |
commit | 7817d0ec83b16dad6ad4f68039a58c371dbca38e (patch) | |
tree | 3eb7738977db5ed216f9aa8e70c992ac6588ca2c /surf.c | |
parent | 723ff26c3618cf4db1ae34688509cbcdfed1412f (diff) | |
download | surf-7817d0ec83b16dad6ad4f68039a58c371dbca38e.tar.gz surf-7817d0ec83b16dad6ad4f68039a58c371dbca38e.tar.bz2 surf-7817d0ec83b16dad6ad4f68039a58c371dbca38e.zip |
Add support for WebGL
Allows enabling and disabling WebGL support built into WebKit.
The feature is turned off by default.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -79,6 +79,7 @@ typedef enum { SpellLanguages, StrictTLS, Style, + WebGL, ZoomLevel, ParameterLast } ParamName; @@ -820,6 +821,9 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a) setstyle(c, getstyle(geturi(c))); refresh = 0; break; + case WebGL: + webkit_settings_set_enable_webgl(s, a->i); + break; case ZoomLevel: webkit_web_view_set_zoom_level(c->view, a->f); return; /* do not update */ @@ -1079,6 +1083,7 @@ newview(Client *c, WebKitWebView *rv) "enable-accelerated-2d-canvas", curconfig[AcceleratedCanvas].val.i, "enable-site-specific-quirks", curconfig[SiteQuirks].val.i, "enable-smooth-scrolling", curconfig[SmoothScrolling].val.i, + "enable-webgl", curconfig[WebGL].val.i, "media-playback-requires-user-gesture", curconfig[MediaManualPlay].val.i, NULL); /* For more interesting settings, have a look at |