X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=surf.c;h=0298ed35c03129c2f5c8bde9cdc85e78efdf6fa4;hb=b7435badc2558dfd9b177005a0884b9bbc12fa1e;hp=906d1452ae6fa84c6cf597f5bc347753d39ed903;hpb=780cca964ca0cf622746ad6e8cae8beb8047d1df;p=surf.git diff --git a/surf.c b/surf.c index 906d145..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; @@ -910,11 +912,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) { @@ -1391,6 +1395,9 @@ main(int argc, char *argv[]) { /* command line args */ ARGBEGIN { + case 'a': + cookiepolicies = EARGF(usage()); + break; case 'b': enablescrollbars = 0; break;