[hackers] [surf] Add a flag to disable fullscreen. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 31 Aug 2013 20:04:33 +0200

commit f3d97922e9f513dba3107559deec8c04ad4461e1
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Aug 31 20:00:41 2013 +0200

    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.

diff --git a/surf.1 b/surf.1
index 619e233..a4e7fd2 100644
--- a/surf.1
+++ b/surf.1
_AT_@ -3,7 +3,7 @@
 surf \- simple webkit-based browser
 .SH SYNOPSIS
 .B surf
-.RB [-bBfgGiIkKnNpPsSvx]
+.RB [-bBfFgGiIkKnNpPsSvx]
 .RB [-c\ cookiefile]
 .RB [-e\ xid]
 .RB [-r\ scriptfile]
_AT_@ -35,6 +35,9 @@ Reparents to window specified by
 .B \-f
 Run surf in fullscreen mode.
 .TP
+.B \-F
+Disable to run in fullscreen by default.
+.TP
 .B \-g
 Disable giving the geolocation to websites.
 .TP
diff --git a/surf.c b/surf.c
index 42bc393..dfcd787 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -1277,7 +1277,8 @@ updatewinid(Client *c) {
 
 static 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]
", basename(argv0));
 }
 
_AT_@ -1326,6 +1327,9 @@ main(int argc, char *argv[]) {
         case 'f':
                 runinfullscreen = 1;
                 break;
+ case 'F':
+ runinfullscreen = 0;
+ break;
         case 'g':
                 allowgeolocation = 0;
                 break;
Received on Sat Aug 31 2013 - 20:04:33 CEST

This archive was generated by hypermail 2.3.0 : Sat Aug 31 2013 - 20:12:16 CEST