summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorBen Woolley <tautolog@gmail.com>2015-01-07 15:41:07 -0800
committerChristoph Lohmann <20h@r-36.net>2015-01-17 07:23:48 +0100
commit24ec46fc241b655bf91a4529fa164ae9703d4eb6 (patch)
tree987d5d01b8f1bf7a47d559e3523bb179974d7f78 /surf.c
parenta5b85836ac04a82f965a9d7fb2a011d614166610 (diff)
downloadsurf-24ec46fc241b655bf91a4529fa164ae9703d4eb6.tar.gz
surf-24ec46fc241b655bf91a4529fa164ae9703d4eb6.tar.bz2
surf-24ec46fc241b655bf91a4529fa164ae9703d4eb6.zip
Fix extra newline, and add -g where other switches are forwarded.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index 6f71657..82cf822 100644
--- a/surf.c
+++ b/surf.c
@@ -957,9 +957,11 @@ newwindow(Client *c, const Arg *arg, gboolean noembed) {
cmd[i++] = "-b";
if(embed && !noembed) {
cmd[i++] = "-e";
- snprintf(tmp, LENGTH(tmp), "%u\n", (int)embed);
+ snprintf(tmp, LENGTH(tmp), "%u", (int)embed);
cmd[i++] = tmp;
}
+ if(!allowgeolocation)
+ cmd[i++] = "-g";
if(!loadimages)
cmd[i++] = "-i";
if(kioskmode)