surf

surf browser, a WebKit based browser
git clone git://git.suckless.org/surf
Log | Files | Refs | README | LICENSE

commit 5f81d4a99f1dd979cdd5f3e72d5de5ea0d5cdc35
parent e92fd1aa5f38c399f8fc5d263026fbd9d34ddfbb
Author: Quentin Rameau <quinq@fifth.space>
Date:   Wed, 27 Nov 2019 01:17:55 +0100

Set title on committed load

Diffstat:
Msurf.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/surf.c b/surf.c @@ -1538,6 +1538,8 @@ loadchanged(WebKitWebView *v, WebKitLoadEvent e, Client *c) seturiparameters(c, uri, loadtransient); break; case WEBKIT_LOAD_COMMITTED: + setatom(c, AtomUri, uri); + c->title = uri; seturiparameters(c, uri, loadcommitted); c->https = webkit_web_view_get_tls_info(c->view, &c->cert, &c->tlserr);