97f9f0b699
This is the first in a series of commits to refactor the color handling in sway. This changes parse_color to return whether it was success and no longer uses 0xFFFFFFFF as the fallback color. This also verifies that the string actually contains a valid hexadecimal number along with the length checks. In the process of altering the calls to parse_color, I also took the opportunity to heavily refactor swaybar's ipc_parse_colors function. This allowed for several lines of duplicated code to be removed. |
||
---|---|---|
.. | ||
tray | ||
bar.c | ||
config.c | ||
i3bar.c | ||
input.c | ||
ipc.c | ||
main.c | ||
meson.build | ||
render.c | ||
status_line.c | ||
swaybar-protocol.7.scd |