diff options
| author | Drew DeVault <sir@cmpwn.com> | 2018-03-27 08:36:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-27 08:36:29 -0400 |
| commit | ef169fcaeb17ec40cf83e54bba2ddbdcff10936f (patch) | |
| tree | db2771489afbfbffcc77a038867bcc45117ba38a /swaybar/status_line.c | |
| parent | 45f14fcb24b6dae8bb78efb1ec7d7a51cb9a4d2c (diff) | |
| parent | 54444e7587589309e329c539ed2b2d505b443ba7 (diff) | |
Merge pull request #1636 from jrouleau/master
swaybar: correctly render min_width for strings
Diffstat (limited to 'swaybar/status_line.c')
| -rw-r--r-- | swaybar/status_line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c index bbb798f1..0f88cfc8 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c @@ -121,7 +121,7 @@ static void parse_json(struct bar *bar, const char *text) { new->min_width = json_object_get_int(min_width); } else if (type == json_type_string) { /* the width will be calculated when rendering */ - new->min_width = 0; + new->min_width_str = strdup(json_object_get_string(min_width)); } } |
