mirror of
https://github.com/swaywm/sway.git
synced 2024-11-04 15:33:13 +00:00
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. |
||
---|---|---|
.. | ||
config.c | ||
main.c | ||
meson.build | ||
render.c | ||
swaynag.1.scd | ||
swaynag.5.scd | ||
swaynag.c | ||
types.c |