sway-patched-tray-menu-github/swaynag
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
..
config.c parse_color: return success + drop fallback color 2019-12-28 10:07:25 +01:00
main.c swaynag: revamp type configs 2019-04-20 09:14:41 -06:00
meson.build swaybg: split into standalone project 2019-04-25 18:44:28 +03:00
render.c Fix dead stores found by scan-build 2019-01-22 10:12:04 -05:00
swaynag.1.scd Fix markup syntax in man pages 2019-08-31 22:50:39 +09:00
swaynag.5.scd swaynag: add blank lines after headings in scdocs 2018-08-01 22:47:54 -04:00
swaynag.c check for empty string before calling strtoul() and check errno 2019-06-05 14:40:29 -04:00
types.c swaynag: revamp type configs 2019-04-20 09:14:41 -06:00