summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq+hackers@fifth.space>2015-11-03 14:25:44 +0100
committerChristoph Lohmann <20h@r-36.net>2015-11-03 19:44:05 +0100
commit9a2547230aeaa6598a0c23bb927d919e634b929e (patch)
tree8c0fb1903aeb97d514b82d83ad317f1be8eb855b /surf.c
parent0290066b3110aa4f92c8809c610f86a74a260148 (diff)
Fix fullscreen handling
Handle the fullscreen in a more consistent way with other options: -f disables fullscreen while -F enables fullscreen. Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/surf.c b/surf.c
index 3f33e54..035853a 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");
@@ -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;