Add fullscreen mode as flag and config option.
This commit is contained in:
parent
058f7f45e2
commit
237e10058a
|
@ -11,6 +11,7 @@ static char *strictssl = FALSE; /* Refuse untrusted SSL connections */
|
||||||
static Bool kioskmode = FALSE; /* Ignore shortcuts */
|
static Bool kioskmode = FALSE; /* Ignore shortcuts */
|
||||||
static Bool showindicators = TRUE; /* Show indicators in window title */
|
static Bool showindicators = TRUE; /* Show indicators in window title */
|
||||||
static Bool zoomto96dpi = TRUE; /* Zoom pages to always emulate 96dpi */
|
static Bool zoomto96dpi = TRUE; /* Zoom pages to always emulate 96dpi */
|
||||||
|
static Bool runinfullscreen = FALSE; /* Run in fullscreen mode by default */
|
||||||
|
|
||||||
static guint defaultfontsize = 12;
|
static guint defaultfontsize = 12;
|
||||||
|
|
||||||
|
|
5
surf.1
5
surf.1
|
@ -3,7 +3,7 @@
|
||||||
surf \- simple webkit-based browser
|
surf \- simple webkit-based browser
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B surf
|
.B surf
|
||||||
.RB [-bBgGiIkKnNpPsSvx]
|
.RB [-bBfgGiIkKnNpPsSvx]
|
||||||
.RB [-c\ cookiefile]
|
.RB [-c\ cookiefile]
|
||||||
.RB [-e\ xid]
|
.RB [-e\ xid]
|
||||||
.RB [-r\ scriptfile]
|
.RB [-r\ scriptfile]
|
||||||
|
@ -32,6 +32,9 @@ to use.
|
||||||
Reparents to window specified by
|
Reparents to window specified by
|
||||||
.I xid.
|
.I xid.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-f
|
||||||
|
Run surf in fullscreen mode.
|
||||||
|
.TP
|
||||||
.B \-g
|
.B \-g
|
||||||
Disable giving the geolocation to websites.
|
Disable giving the geolocation to websites.
|
||||||
.TP
|
.TP
|
||||||
|
|
8
surf.c
8
surf.c
|
@ -833,6 +833,11 @@ newclient(void) {
|
||||||
c->isinspecting = false;
|
c->isinspecting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(runinfullscreen) {
|
||||||
|
c->fullscreen = 0;
|
||||||
|
fullscreen(c, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
g_free(uri);
|
g_free(uri);
|
||||||
|
|
||||||
setatom(c, AtomFind, "");
|
setatom(c, AtomFind, "");
|
||||||
|
@ -1318,6 +1323,9 @@ main(int argc, char *argv[]) {
|
||||||
case 'e':
|
case 'e':
|
||||||
embed = strtol(EARGF(usage()), NULL, 0);
|
embed = strtol(EARGF(usage()), NULL, 0);
|
||||||
break;
|
break;
|
||||||
|
case 'f':
|
||||||
|
runinfullscreen = 1;
|
||||||
|
break;
|
||||||
case 'g':
|
case 'g':
|
||||||
allowgeolocation = 0;
|
allowgeolocation = 0;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user