diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 93878fd..7b3d1e5 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -223,6 +223,15 @@ mouse_target_changed_cb(WebKitWebView __attribute__((unused)) *web_view, hit_test_result)); gtk_entry_set_attributes(GTK_ENTRY(chrome->uri_entry), chrome->hovered_link_style); + } else if (gtk_entry_get_attributes( + GTK_ENTRY(chrome->uri_entry)) == + chrome->hovered_link_style) { + /* The URI bar's text differs from the Web view's URI + * because the mouse was already targeting a different + * link. */ + gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), + webkit_hit_test_result_get_link_uri( + hit_test_result)); } } else { if (gtk_entry_get_attributes(GTK_ENTRY(chrome->uri_entry)) == |