1
0
mirror of git://git.suckless.org/surf synced 2025-01-21 23:34:22 +00:00

Remove frame flattening toggle

This has been deprecated since 2.38.
This commit is contained in:
Quentin Rameau 2024-03-17 06:40:28 +01:00
parent f1d47112d6
commit 175710126c
3 changed files with 0 additions and 12 deletions

View File

@ -27,7 +27,6 @@ static Parameter defconfig[ParameterLast] = {
[Ephemeral] = { { .i = 0 }, },
[FileURLsCrossAccess] = { { .i = 0 }, },
[FontSize] = { { .i = 12 }, },
[FrameFlattening] = { { .i = 0 }, },
[Geolocation] = { { .i = 0 }, },
[HideBackground] = { { .i = 0 }, },
[Inspector] = { { .i = 0 }, },
@ -173,7 +172,6 @@ static Key keys[] = {
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_o, toggleinspector, { 0 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_c, toggle, { .i = CaretBrowsing } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_f, toggle, { .i = FrameFlattening } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_g, toggle, { .i = Geolocation } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_s, toggle, { .i = JavaScript } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } },

3
surf.1
View File

@ -261,9 +261,6 @@ scripts
.B m M
styles
.TP
.B f F
frame flattening
.TP
.B x X
custom certificates
.TP

7
surf.c
View File

@ -64,7 +64,6 @@ typedef enum {
Ephemeral,
FileURLsCrossAccess,
FontSize,
FrameFlattening,
Geolocation,
HideBackground,
Inspector,
@ -283,7 +282,6 @@ static ParamName loadcommitted[] = {
DarkMode,
DefaultCharset,
FontSize,
FrameFlattening,
Geolocation,
HideBackground,
Inspector,
@ -679,7 +677,6 @@ gettogglestats(Client *c)
togglestats[4] = curconfig[LoadImages].val.i ? 'I' : 'i';
togglestats[5] = curconfig[JavaScript].val.i ? 'S' : 's';
togglestats[6] = curconfig[Style].val.i ? 'M' : 'm';
togglestats[7] = curconfig[FrameFlattening].val.i ? 'F' : 'f';
togglestats[8] = curconfig[Certificate].val.i ? 'X' : 'x';
togglestats[9] = curconfig[StrictTLS].val.i ? 'T' : 't';
}
@ -802,9 +799,6 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
case FontSize:
webkit_settings_set_default_font_size(c->settings, a->i);
return; /* do not update */
case FrameFlattening:
webkit_settings_set_enable_frame_flattening(c->settings, a->i);
break;
case Geolocation:
refresh = 0;
break;
@ -1128,7 +1122,6 @@ newview(Client *c, WebKitWebView *rv)
"enable-caret-browsing", curconfig[CaretBrowsing].val.i,
"enable-developer-extras", curconfig[Inspector].val.i,
"enable-dns-prefetching", curconfig[DNSPrefetch].val.i,
"enable-frame-flattening", curconfig[FrameFlattening].val.i,
"enable-html5-database", curconfig[DiskCache].val.i,
"enable-html5-local-storage", curconfig[DiskCache].val.i,
"enable-java", curconfig[Java].val.i,