Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 2 insertions, 1 deletions
-rw-r--r--goodwolf.c3
diff --git a/goodwolf.c b/goodwolf.c
index 479c407..f4abe5b 100644
--- a/goodwolf.c
+++ b/goodwolf.c
@@ -725,7 +725,8 @@ new_browser(struct Window *window, const gchar *target_url, struct Client *old_b
if(browser == NULL) return NULL;
browser->window = window;
- browser->context_id = old_browser == NULL ? context_id_counter++ : old_browser->context_id;
+ browser->context_id = old_browser == NULL || old_browser == global_browser
+ ? context_id_counter++ : old_browser->context_id;
browser->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_set_name(browser->box, "browser__box");