From e9d986f5bdaac99c34c8fa115436c7d03a0c5368 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 21 May 2017 01:58:54 +0200 Subject: [PATCH] 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. --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.20.1