From 1c1876c85aae28104bb9f65f283e18aa29e9876f Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Sat, 22 Aug 2020 07:01:23 +0200 Subject: [PATCH] Focus c->web_view on new tabs --- CHANGES | 2 ++ browser.c | 1 + 2 files changed, 3 insertions(+) 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); -- 2.39.2