Move xid printing option from -x to -w
authorQuentin Rameau <quinq@fifth.space>
Sat, 29 Apr 2017 15:23:37 +0000 (17:23 +0200)
committerQuentin Rameau <quinq@fifth.space>
Sat, 29 Apr 2017 15:59:08 +0000 (17:59 +0200)
surf.1
surf.c

diff --git a/surf.1 b/surf.1
index 920687e..cc54351 100644 (file)
--- a/surf.1
+++ b/surf.1
@@ -121,7 +121,7 @@ which surf should use.
 .B \-v
 Prints version information to standard output, then exits.
 .TP
 .B \-v
 Prints version information to standard output, then exits.
 .TP
-.B \-x
+.B \-w
 Prints xid to standard output. This can be used to script the browser in for
 example
 .BR xdotool(1).
 Prints xid to standard output. This can be used to script the browser in for
 example
 .BR xdotool(1).
diff --git a/surf.c b/surf.c
index ba95063..84ab8e3 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -920,7 +920,7 @@ newwindow(Client *c, const Arg *a, int noembed)
                cmd[i++] = fulluseragent;
        }
        if (showxid)
                cmd[i++] = fulluseragent;
        }
        if (showxid)
-               cmd[i++] = "-x";
+               cmd[i++] = "-w";
        /* do not keep zoom level */
        cmd[i++] = "--";
        if ((uri = a->v))
        /* do not keep zoom level */
        cmd[i++] = "--";
        if ((uri = a->v))
@@ -1899,7 +1899,7 @@ main(int argc, char *argv[])
        case 'v':
                die("surf-"VERSION", ©2009-2017 surf engineers, "
                    "see LICENSE for details\n");
        case 'v':
                die("surf-"VERSION", ©2009-2017 surf engineers, "
                    "see LICENSE for details\n");
-       case 'x':
+       case 'w':
                showxid = 1;
                break;
        case 'z':
                showxid = 1;
                break;
        case 'z':