1
1
mirror of https://github.com/swaywm/sway synced 2024-11-23 13:22:17 +01:00
sway/common
Brian Ashworth 66dc33296c 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.
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 cmd_client_*: refactor duplicated code 2019-12-28 10:07:25 +01:00