From 3414c0c966dec90143f7f2d0734e18650542c1b5 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Wed, 5 Feb 2014 16:58:23 +0100 Subject: [PATCH] Keep cookie policies for new windows --- surf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/surf.c b/surf.c index e967672..ba01958 100644 --- a/surf.c +++ b/surf.c @@ -910,11 +910,13 @@ newclient(void) { static void newwindow(Client *c, const Arg *arg, gboolean noembed) { guint i = 0; - const char *cmd[14], *uri; + const char *cmd[16], *uri; const Arg a = { .v = (void *)cmd }; char tmp[64]; cmd[i++] = argv0; + cmd[i++] = "-a"; + cmd[i++] = cookiepolicies; if(!enablescrollbars) cmd[i++] = "-b"; if(embed && !noembed) { -- 1.8.5.3 From f749bb148a440012efa1273bf07de4a6f2fab4d0 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Wed, 5 Feb 2014 17:03:56 +0100 Subject: [PATCH] Draw flags on window creation --- surf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/surf.c b/surf.c index ba01958..0298ed3 100644 --- a/surf.c +++ b/surf.c @@ -890,7 +890,9 @@ newclient(void) { if(hidebackground) webkit_web_view_set_transparent(c->view, TRUE); - c->title = NULL; + c->title = ""; + c->progress = 100; + updatetitle(c); c->next = clients; clients = c; -- 1.8.5.3