diff options
author | portix <none@none> | 2012-12-26 02:20:16 +0100 |
---|---|---|
committer | portix <none@none> | 2012-12-26 02:20:16 +0100 |
commit | 2fbdba9c84bdaaeb5640c245d9228df6411c8929 (patch) | |
tree | 0f26a654556d6c1577ba429a5ea8c0b165c3fa52 /src/dwb.c | |
parent | 7f198e7deff463210ed44251fc03c449261f2002 (diff) | |
download | dwb-2fbdba9c84bdaaeb5640c245d9228df6411c8929.zip |
New option 'load-on-focus'
Diffstat (limited to 'src/dwb.c')
-rw-r--r-- | src/dwb.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -2504,9 +2504,13 @@ dwb_update_layout() { for (GList *gl = dwb.state.views; gl; gl = gl->next) { - View *v = gl->data; - const char *title = webkit_web_view_get_title(WEBKIT_WEB_VIEW(v->web)); - dwb_tab_label_set_text(gl, title); + if (!VIEW(gl)->status->deferred) + { + View *v = gl->data; + const char *title = webkit_web_view_get_title(WEBKIT_WEB_VIEW(v->web)); + dwb_tab_label_set_text(gl, title); + } + } dwb_update_tabs(); }/*}}}*/ @@ -2521,7 +2525,10 @@ dwb_focus(GList *gl) dwb.state.fview = gl; view_set_active_style(gl); dwb_focus_scroll(gl); - dwb_update_status(gl, NULL); + if (!VIEW(gl)->status->deferred) + dwb_update_status(gl, NULL); + else if (VIEW(gl)->status->deferred_uri) + webkit_web_view_load_uri(WEBVIEW(gl), VIEW(gl)->status->deferred_uri); }/*}}}*/ /* dwb_new_window(const char *arg) {{{*/ |