Just a couple minor things I found while working on other things. The
geolocation state was being lost on new windows. There was a newline being
passed in the embed argument, but it didn't seem to break anything.
From b52d38fbb70425d59126a8bd64db42be1eb9ace4 Mon Sep 17 00:00:00 2001
From: Ben Woolley <[email protected]>
Date: Wed, 7 Jan 2015 15:41:07 -0800
Subject: [PATCH 4/5] Fix extra newline, and add -g where other switches are
forwarded.
---
surf.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/surf.c b/surf.c
index 34958ff..91a69ed 100644
--- a/surf.c
+++ b/surf.c
@@ -934,9 +934,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)
--
2.1.2