From 1db4b4a8f567fc6cd79cef8d73802ab2ca1ce8e2 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Wed, 16 Dec 2015 14:14:27 +0100 Subject: Correct typo seperator -> separator --- swaybar/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swaybar/main.c b/swaybar/main.c index 8f544c02..e73a6671 100644 --- a/swaybar/main.c +++ b/swaybar/main.c @@ -28,7 +28,7 @@ struct box_colors { struct colors { uint32_t background; uint32_t statusline; - uint32_t seperator; + uint32_t separator; struct box_colors focused_workspace; struct box_colors active_workspace; @@ -55,7 +55,7 @@ struct window *window; struct colors colors = { .background = 0x000000FF, .statusline = 0xFFFFFFFF, - .seperator = 0x666666FF, + .separator = 0x666666FF, .focused_workspace = { .border = 0x4C7899FF, @@ -220,7 +220,7 @@ void bar_ipc_init(int outputi, const char *bar_id) { json_object_object_get_ex(_colors, "binding_mode_text", &binding_mode_text); if (background) colors.background = parse_color(json_object_get_string(background)); if (statusline) colors.statusline = parse_color(json_object_get_string(statusline)); - if (separator) colors.seperator = parse_color(json_object_get_string(separator)); + if (separator) colors.separator = parse_color(json_object_get_string(separator)); if (focused_workspace_border) { colors.focused_workspace.border = parse_color(json_object_get_string(focused_workspace_border)); } -- cgit v1.2.3 From 3bd388a307375f314df755536a50570e69620f7a Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Wed, 16 Dec 2015 14:14:53 +0100 Subject: Remove trailing whitespace --- swaybar/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swaybar/main.c b/swaybar/main.c index e73a6671..f2f0f7f7 100644 --- a/swaybar/main.c +++ b/swaybar/main.c @@ -91,7 +91,7 @@ void sway_terminate(void) { } void cairo_set_source_u32(cairo_t *cairo, uint32_t color) { - cairo_set_source_rgba(cairo, + cairo_set_source_rgba(cairo, ((color & 0xFF000000) >> 24) / 256.0, ((color & 0xFF0000) >> 16) / 256.0, ((color & 0xFF00) >> 8) / 256.0, -- cgit v1.2.3