commit 0eed6a4f9930024132807a0f66e58c526d2aea4d
parent d2995d1eb2f541db845c60c11420bf81ee0143ab
Author: taiyu <taiyu.len@gmail.com>
Date: Mon, 17 Aug 2015 11:25:36 -0700
Merge branch 'master' of https://github.com/SirCmpwn/sway
merging
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/sway/layout.c b/sway/layout.c
@@ -285,6 +285,9 @@ void unfocus_all(swayc_t *container) {
}
void focus_view(swayc_t *view) {
+ if (!view) {
+ return;
+ }
sway_log(L_DEBUG, "Setting focus for %p:%ld", view, view->handle);
swayc_t *c = view;
//Set focus from root to view