summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2020-08-22 07:01:23 +0200
committerPeter Hofmann <scm@uninformativ.de>2020-08-22 07:01:23 +0200
commit1c1876c85aae28104bb9f65f283e18aa29e9876f (patch)
treef6d86b3370eaacc1315689a8abf8212abd3ee321
parent74bdc3ed21d74d464cd94c5ca461b9ba7d10616b (diff)
downloadlariza-1c1876c85aae28104bb9f65f283e18aa29e9876f.tar.gz
Focus c->web_view on new tabs
-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);