summaryrefslogtreecommitdiff
path: root/src/view.c
diff options
context:
space:
mode:
authorportix <none@none>2012-04-01 13:13:32 +0200
committerportix <none@none>2012-04-01 13:13:32 +0200
commitec89eaa2863038d8c77b083a29a0eb79ad208941 (patch)
tree7f446696bad516eba98dd676f773fc4d4eba0c7b /src/view.c
parentbe5fcab0b547757a17e38c3ce1dbfa31b5ace48e (diff)
downloaddwb-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view.c b/src/view.c
index 2618cbfe..207e4aee 100644
--- a/src/view.c
+++ b/src/view.c
@@ -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);
}
}/*}}}*/