From 0ee55474067364159f84806b7b0813492ed4e546 Mon Sep 17 00:00:00 2001 From: crondog Date: Wed, 27 Jan 2016 16:57:55 +1100 Subject: font: Allow adding font to the config. In prep for border titles v2: Give default font and make bar use it if no bar font --- sway/ipc-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/ipc-server.c') diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 58a291cd..63a6d703 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -551,7 +551,7 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) { break; } json_object_object_add(json, "status_command", json_object_new_string(bar->status_command)); - json_object_object_add(json, "font", json_object_new_string(bar->font)); + json_object_object_add(json, "font", json_object_new_string(bar->font ? bar->font : config->font)); if (bar->separator_symbol) { json_object_object_add(json, "separator_symbol", json_object_new_string(bar->separator_symbol)); } -- cgit v1.2.3