X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=cac329b89e1d9b4481e575dff508c686213b5f64;hb=df96fe4171c525968a81c794dc534dfb628807e7;hp=492c8369f0c7c4740a59b700e595eef7d98907c9;hpb=bc73b48743eb0b51905322cad25b4647569e7996;p=surf.git diff --git a/surf.c b/surf.c index 492c836..cac329b 100644 --- a/surf.c +++ b/surf.c @@ -345,7 +345,7 @@ initdownload(WebKitWebView *view, WebKitDownload *o, Client *c) { Arg arg; updatewinid(c); - arg = (Arg)DOWNLOAD((char *)webkit_download_get_uri(o)); + arg = (Arg)DOWNLOAD((char *)webkit_download_get_uri(o), useragent); spawn(c, &arg); return FALSE; } @@ -461,7 +461,7 @@ newclient(void) { * window class (WM_CLASS) is capped, while the resource is in * lowercase. Both these values come as a pair. */ - gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "surf"); + gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "Surf"); /* TA: 20091214: And set the role here as well -- so that * sessions can pick this up.