From: Daniel Carl Date: Sat, 20 May 2017 23:58:54 +0000 (+0200) Subject: Stop hinting when element clicked by mouse. X-Git-Url: https://git.owens.tech/assets/static/git-favicon.png/assets/static/git-favicon.png/git?a=commitdiff_plain;h=e9d986f5bdaac99c34c8fa115436c7d03a0c5368;p=vimb.git Stop hinting when element clicked by mouse. In case a links was clicked by mouse during active hinting, the new page was loaded and kept still in hinting mode but there where no hints shown on the new page. --- diff --git a/src/main.c b/src/main.c index e03aaaa..0de0da4 100644 --- a/src/main.c +++ b/src/main.c @@ -1206,6 +1206,13 @@ static void on_webview_load_changed(WebKitWebView *webview, c->state.progress = 0; vb_statusbar_update(c); set_title(c, webkit_web_view_get_uri(webview)); + /* Make sure hinting is cleared before the new page is loaded. + * Without that vimb would still be in hinting mode after hinting + * was started and some links was clicked my mouse. Even if there + * could not hints be shown. */ + if (c->mode->flags & FLAG_HINTING) { + vb_enter(c, 'n'); + } break; case WEBKIT_LOAD_REDIRECTED: