diff options
Diffstat (limited to 'sway/border.c')
-rw-r--r-- | sway/border.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/border.c b/sway/border.c index f681e4f1..46343d61 100644 --- a/sway/border.c +++ b/sway/border.c | |||
@@ -233,6 +233,10 @@ static char *generate_container_title(swayc_t *container) { | |||
233 | title = generate_container_title(child); | 233 | title = generate_container_title(child); |
234 | } | 234 | } |
235 | 235 | ||
236 | if (!title) { | ||
237 | title = "(null)"; | ||
238 | } | ||
239 | |||
236 | len = strlen(name) + strlen(title) + 1; | 240 | len = strlen(name) + strlen(title) + 1; |
237 | if (i < container->children->length-1) { | 241 | if (i < container->children->length-1) { |
238 | len++; | 242 | len++; |