Add a flag to disable fullscreen.

This also updates the usage of surf to represent the current status.
Thanks Alexander Sedov for the suggestion, but you forgot the manpage
entry so I did this patch.
This commit is contained in:
Christoph Lohmann 2013-08-31 20:00:41 +02:00
parent 237e10058a
commit f3d97922e9
2 changed files with 9 additions and 2 deletions

5
surf.1
View file

@ -3,7 +3,7 @@
surf \- simple webkit-based browser surf \- simple webkit-based browser
.SH SYNOPSIS .SH SYNOPSIS
.B surf .B surf
.RB [-bBfgGiIkKnNpPsSvx] .RB [-bBfFgGiIkKnNpPsSvx]
.RB [-c\ cookiefile] .RB [-c\ cookiefile]
.RB [-e\ xid] .RB [-e\ xid]
.RB [-r\ scriptfile] .RB [-r\ scriptfile]
@ -35,6 +35,9 @@ Reparents to window specified by
.B \-f .B \-f
Run surf in fullscreen mode. Run surf in fullscreen mode.
.TP .TP
.B \-F
Disable to run in fullscreen by default.
.TP
.B \-g .B \-g
Disable giving the geolocation to websites. Disable giving the geolocation to websites.
.TP .TP

6
surf.c
View file

@ -1277,7 +1277,8 @@ updatewinid(Client *c) {
static void static void
usage(void) { usage(void) {
die("usage: %s [-biknpsvx] [-c cookiefile] [-e xid] [-r scriptfile]" die("usage: %s [-bBfFgGiIkKnNpPsSvx]"
" [-c cookiefile] [-e xid] [-r scriptfile]"
" [-t stylefile] [-u useragent] [uri]\n", basename(argv0)); " [-t stylefile] [-u useragent] [uri]\n", basename(argv0));
} }
@ -1326,6 +1327,9 @@ main(int argc, char *argv[]) {
case 'f': case 'f':
runinfullscreen = 1; runinfullscreen = 1;
break; break;
case 'F':
runinfullscreen = 0;
break;
case 'g': case 'g':
allowgeolocation = 0; allowgeolocation = 0;
break; break;