X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=ff2496d462f0f625950cf5b899b31747c0bf6e7a;hb=1ebb5c624e0db26c8a0632637ff8e3941d20daef;hp=3f33e54b7d18dd49af4e2663dfa349de3540d7d0;hpb=0290066b3110aa4f92c8809c610f86a74a260148;p=surf.git diff --git a/surf.c b/surf.c index 3f33e54..ff2496d 100644 --- a/surf.c +++ b/surf.c @@ -1053,10 +1053,8 @@ newclient(void) c->isinspecting = false; } - if (runinfullscreen) { - c->fullscreen = 0; + if (runinfullscreen) fullscreen(c, NULL); - } setatom(c, AtomFind, ""); setatom(c, AtomUri, "about:blank"); @@ -1624,7 +1622,7 @@ updatewinid(Client *c) void usage(void) { - die("usage: %s [-bBfFgGiIkKnNpPsSvx] [-a cookiepolicies ] " + die("usage: %s [-bBdDfFgGiIkKmMnNpPsSvx] [-a cookiepolicies ] " "[-c cookiefile] [-e xid] [-r scriptfile] [-t stylefile] " "[-u useragent] [-z zoomlevel] [uri]\n", basename(argv0)); } @@ -1685,10 +1683,10 @@ main(int argc, char *argv[]) embed = strtol(EARGF(usage()), NULL, 0); break; case 'f': - runinfullscreen = 1; + runinfullscreen = 0; break; case 'F': - runinfullscreen = 0; + runinfullscreen = 1; break; case 'g': allowgeolocation = 0;