sway-patched-tray-menu/swaybar
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
..
tray Amend typos 2019-11-23 11:48:31 +01:00
bar.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
config.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
i3bar.c parse_color: return success + drop fallback color 2019-12-28 10:07:25 +01:00
input.c check for empty string before calling strtoul() and check errno 2019-06-05 14:40:29 -04:00
ipc.c parse_color: return success + drop fallback color 2019-12-28 10:07:25 +01:00
main.c swaybar: prevent signal handler from firing during termination 2019-02-15 14:09:14 +00:00
meson.build Removed unused wlroots dependency for sway(bg|bar|msg|nag) 2019-01-21 13:04:15 -05:00
render.c parse_color: return success + drop fallback color 2019-12-28 10:07:25 +01:00
status_line.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
swaybar-protocol.7.scd swaybar-protocol.7: fix block border descriptions 2019-06-28 10:34:09 +03:00