diff options
author | portix <none@none> | 2012-04-01 13:13:32 +0200 |
---|---|---|
committer | portix <none@none> | 2012-04-01 13:13:32 +0200 |
commit | ec89eaa2863038d8c77b083a29a0eb79ad208941 (patch) | |
tree | 7f446696bad516eba98dd676f773fc4d4eba0c7b /src/view.c | |
parent | be5fcab0b547757a17e38c3ce1dbfa31b5ace48e (diff) | |
download | dwb-ec89eaa2863038d8c77b083a29a0eb79ad208941.zip |
Only change from insert mode to normal mode in requests for the focused tab
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ static void view_frame_created_cb(WebKitWebView *wv, WebKitWebFrame *, GList *); /* view_main_frame_committed_cb {{{*/ void view_main_frame_committed_cb(WebKitWebFrame *frame, GList *gl) { - if (dwb.state.mode == INSERT_MODE || dwb.state.mode == FIND_MODE) { + if (gl == dwb.state.fview && (dwb.state.mode == INSERT_MODE || dwb.state.mode == FIND_MODE)) { dwb_change_mode(NORMAL_MODE, true); } }/*}}}*/ |