summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--browser.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 538ad11..061b6f2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,8 @@ next
- Middle-click to open in a new tab has been improved. In certain
conditions, the user's intention to open a new tab has been ignored
and URLs haven been opened in the current tab.
+ - When new tabs are opened in the background, the web view is now
+ focused by default.
v20.07 2020-07-19
[Fixed]
diff --git a/browser.c b/browser.c
index 3e0a4a7..2ebcaff 100644
--- a/browser.c
+++ b/browser.c
@@ -203,6 +203,7 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show,
c->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start(GTK_BOX(c->vbox), c->location, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(c->vbox), c->web_view, TRUE, TRUE, 0);
+ gtk_container_set_focus_child(GTK_CONTAINER(c->vbox), c->web_view);
c->tabicon = gtk_image_new_from_icon_name("text-html", GTK_ICON_SIZE_SMALL_TOOLBAR);