mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
change bar colors from char[10] to *char
This commit removes has_* booleans from bar color struct. It also generalizes of functions in commands/bar/colors.c.
This commit is contained in:
parent
ad4d21d60b
commit
58eb7ac19f
5 changed files with 152 additions and 215 deletions
|
|
@ -255,6 +255,7 @@ struct cmd_results *add_color(const char *name, char *buffer, const char *color)
|
|||
buffer[7] = 'f';
|
||||
buffer[8] = 'f';
|
||||
}
|
||||
buffer[9] = '\0';
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue