diff options
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) { | |||
477 | /* Fallthrough */ | 477 | /* Fallthrough */ |
478 | 478 | ||
479 | case C_OUTPUT: | 479 | case C_OUTPUT: |
480 | cont = cont->focused; | 480 | cont = cont ? cont->focused : NULL; |
481 | /* Fallthrough */ | 481 | /* Fallthrough */ |
482 | 482 | ||
483 | case C_WORKSPACE: | 483 | case C_WORKSPACE: |