diff options
author | Drew DeVault <ddevault@linode.com> | 2015-08-17 14:18:57 -0400 |
---|---|---|
committer | Drew DeVault <ddevault@linode.com> | 2015-08-17 14:18:57 -0400 |
commit | 9835845e220ea2236a90d939ad901247fcd74bc4 (patch) | |
tree | 0b195da9cfa78f2398885b2f41bdb03d358dcde3 /sway | |
parent | 107f961752641ca81cfb38a95948ea8fd0f236af (diff) |
Fix segfault from focus_view
Diffstat (limited to 'sway')
-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 |