fixed segfault on exit + a little fixup of that floatfocus pr

This commit is contained in:
taiyu 2015-08-25 13:29:33 -07:00
parent 0bf380a0b1
commit 225c2fbe5b
5 changed files with 24 additions and 17 deletions

View file

@ -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: