summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-07-03 23:35:32 +0200
committerportix <portix@gmx.net>2011-07-03 23:35:32 +0200
commitc2d0afe0f7fb0109cdd88dc2f1dfd8ac2e588742 (patch)
treee938357b644f7688f0f6292d7c2785b9c6799244 /src/session.c
parentf74939ed190076a8d612a6ae757335c45ab42dcd (diff)
downloaddwb-c2d0afe0f7fb0109cdd88dc2f1dfd8ac2e588742.zip
Fixing wrong focus after opening a session
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 8917db71..0aaf3783 100644
--- a/src/session.c
+++ b/src/session.c
@@ -131,6 +131,8 @@ dwb_session_restore(const char *name) {
gtk_widget_hide(((View*)l->data)->vbox);
}
}
+ dwb_unfocus();
+ dwb_focus(dwb.state.views);
dwb_update_layout(false);
return true;
}/*}}}*/