diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-17 11:25:36 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-17 11:25:36 -0700 |
commit | 0eed6a4f9930024132807a0f66e58c526d2aea4d (patch) | |
tree | 638b7f33363ec25b13107f4dd9c3001cfb8a959b | |
parent | d2995d1eb2f541db845c60c11420bf81ee0143ab (diff) | |
parent | 9835845e220ea2236a90d939ad901247fcd74bc4 (diff) |
Merge branch 'master' of https://github.com/SirCmpwn/sway
merging
-rw-r--r-- | sway/layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c index 1bc65050..f4079d4b 100644 --- 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 |