swayfx/common
Brian Ashworth 97f9f0b699 parse_color: return success + drop fallback color
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.
2019-12-28 10:07:25 +01:00
..
background-image.c swaybg: split into standalone project 2019-04-25 18:44:28 +03:00
cairo.c swaybg: split into standalone project 2019-04-25 18:44:28 +03:00
ipc-client.c ipc-client: remove useless free for failed malloc 2019-08-12 09:42:11 +09:00
list.c Merge pull request #3271 from ianyfan/list-cleanup 2018-12-09 21:50:19 +10:00
log.c Use -fmacro-prefix-map to strip build path 2019-07-15 16:35:50 -04:00
loop.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
meson.build Removed unused wlroots dependency for sway(bg|bar|msg|nag) 2019-01-21 13:04:15 -05:00
pango.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
stringop.c Amend typos 2019-11-23 11:48:31 +01:00
util.c parse_color: return success + drop fallback color 2019-12-28 10:07:25 +01:00