Fix fullscreen handling - surf - Surf web browser.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 9a2547230aeaa6598a0c23bb927d919e634b929e
 (DIR) parent 0290066b3110aa4f92c8809c610f86a74a260148
 (HTM) Author: Quentin Rameau <quinq+hackers@fifth.space>
       Date:   Tue,  3 Nov 2015 14:25:44 +0100
       
       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:
         surf.1                              |       4 ++--
         surf.c                              |       8 +++-----
       
       2 files changed, 5 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/surf.1 b/surf.1
       @@ -51,10 +51,10 @@ Reparents to window specified by
        .I xid.
        .TP
        .B \-f
       -Run surf in fullscreen mode.
       +Start surf in windowed mode (not fullscreen).
        .TP
        .B \-F
       -Disable to run in fullscreen by default.
       +Start surf in fullscreen mode.
        .TP
        .B \-g
        Disable giving the geolocation to websites.
 (DIR) diff --git 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;