From 9a2547230aeaa6598a0c23bb927d919e634b929e Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Tue, 3 Nov 2015 14:25:44 +0100 Subject: 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> --- surf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'surf.c') 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; -- cgit v1.2.3