rename NOBACKGROUND to HIDE_BACKGROUND and use TRUE/FALSE instead of 0/1
[surf.git] / surf.c
diff --git a/surf.c b/surf.c
index b2e7f20..6dc32ea 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -211,6 +211,7 @@ void
 destroyclient(Client *c) {
        Client *p;
 
+       webkit_web_view_stop_loading(c->view);
        gtk_widget_destroy(c->indicator);
        gtk_widget_destroy(GTK_WIDGET(c->view));
        gtk_widget_destroy(c->scroll);
@@ -506,7 +507,7 @@ newclient(void) {
 
        setatom(c, AtomFind, "");
        setatom(c, AtomUri, "about:blank");
-       if(NOBACKGROUND)
+       if(HIDE_BACKGROUND)
                webkit_web_view_set_transparent(c->view, TRUE);
 
        c->title = NULL;