diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-12-27 23:56:11 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-12-27 23:56:11 -0500 |
| commit | 970a9253a1b68eafd534edf51479c371ff136ef2 (patch) | |
| tree | 95cb83ff86cf43d096df4f10a3cfb402d34315f7 /ISSUE_TEMPLATE.md | |
| parent | 8e32e808ad0d0e5f94e377d0c34f5440cf355656 (diff) | |
cmd_client_*: refactor duplicated code
This is the second in a series of commits to refactor the color handling
in sway. This removes the duplicated color parsing code in
sway/commands/client.c. Additionally, this combines the parsing of
colors to float arrays with that in sway/config.c and introduces a
color_to_rgba function in commom/util.c.
As an added bonus, this also makes it so non of the colors in a border
color class will be changed unless all of the colors specified are
valid. This ensures that an invalid command does not get partially
applied.
Diffstat (limited to 'ISSUE_TEMPLATE.md')
0 files changed, 0 insertions, 0 deletions
