summaryrefslogtreecommitdiff
path: root/src/dwb.c
diff options
context:
space:
mode:
authorportix <none@none>2012-12-26 02:20:16 +0100
committerportix <none@none>2012-12-26 02:20:16 +0100
commit2fbdba9c84bdaaeb5640c245d9228df6411c8929 (patch)
tree0f26a654556d6c1577ba429a5ea8c0b165c3fa52 /src/dwb.c
parent7f198e7deff463210ed44251fc03c449261f2002 (diff)
downloaddwb-2fbdba9c84bdaaeb5640c245d9228df6411c8929.zip
New option 'load-on-focus'
Diffstat (limited to 'src/dwb.c')
-rw-r--r--src/dwb.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 8275f96a..2d2dce74 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -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) {{{*/