diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-25 13:29:33 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-25 13:29:33 -0700 |
commit | 225c2fbe5b9219fd848c2d6d11cadef9ef1b42f0 (patch) | |
tree | 3099d9e4b4f1b2491bfc0e93d9976e4e8161fd89 /sway/container.c | |
parent | 0bf380a0b1a83f49e2e33066ab6504d308dcec89 (diff) |
fixed segfault on exit + a little fixup of that floatfocus pr
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index 6fbfa360..cd7c9b13 100644 --- a/sway/container.c +++ b/sway/container.c @@ -477,7 +477,7 @@ swayc_t *swayc_active_workspace_for(swayc_t *cont) { /* Fallthrough */ case C_OUTPUT: - cont = cont->focused; + cont = cont ? cont->focused : NULL; /* Fallthrough */ case C_WORKSPACE: |