tFix extra newline, and add -g where other switches are forwarded. - surf - customized build of surf, the suckless webkit browser
(HTM) git clone git://src.adamsgaard.dk/surf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 24ec46fc241b655bf91a4529fa164ae9703d4eb6
(DIR) parent a5b85836ac04a82f965a9d7fb2a011d614166610
(HTM) Author: Ben Woolley <tautolog@gmail.com>
Date: Wed, 7 Jan 2015 15:41:07 -0800
Fix extra newline, and add -g where other switches are forwarded.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M surf.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/surf.c b/surf.c
t@@ -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)