]> git.armaanb.net Git - chorizo.git/commitdiff
Focus c->web_view on new tabs
authorPeter Hofmann <scm@uninformativ.de>
Sat, 22 Aug 2020 05:01:23 +0000 (07:01 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Sat, 22 Aug 2020 05:01:23 +0000 (07:01 +0200)
CHANGES
browser.c

diff --git a/CHANGES b/CHANGES
index 538ad112c1a8c664e66845362d100b263792262c..061b6f2718d5dc04b1bea716651ab774d4348add 100644 (file)
--- 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]
index 3e0a4a7df8e40858942fb3b38dd27848b67b0578..2ebcaff6de0a084bf823076649b4942bfdbcfd52 100644 (file)
--- 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);